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.pre.21 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.20 lib/praxis/exceptions/validation.rb
praxis-2.0.pre.19 lib/praxis/exceptions/validation.rb