Sha256: 99b6a75ad4c9f2b61b0bbc51dc40d7d4aa5e4c33e9d04be141fddd32caa50d22

Contents?: true

Size: 249 Bytes

Versions: 23

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

module Praxis
  module Exceptions
    class Validation < RuntimeError
      attr_accessor :errors

      def initialize(message, errors: nil)
        super(message)
        @errors = errors
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
praxis-2.0.0 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.40 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.39 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.38 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.37 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.36 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.35 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.34 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.33 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.32 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.31 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.30 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.29 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.28 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.27 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.26 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.25 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.24 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.23 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.22 lib/praxis/exceptions/validation.rb