Sha256: 59131d8ec9031eb2f9dec753fdff96c3fafb4ffb798a0ee0624480ded46db244

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 Bytes

Contents

module DMAO
  module API
    module Errors

      class InvalidPerson < StandardError

        attr_reader :errors

        def initialize(msg="Invalid person details passed in, please see errors.", errors=nil)

          @errors = errors

          super(msg)

        end

      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dmao_api-0.6.0 lib/dmao/api/errors/invalid_person.rb
dmao_api-0.5.0 lib/dmao/api/errors/invalid_person.rb
dmao_api-0.4.0 lib/dmao/api/errors/invalid_person.rb
dmao_api-0.3.0 lib/dmao/api/errors/invalid_person.rb