Exception: DMAO::API::Errors::InvalidPerson
- Inherits:
-
StandardError
- Object
- StandardError
- DMAO::API::Errors::InvalidPerson
- Defined in:
- lib/dmao/api/errors/invalid_person.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(msg = "Invalid person details passed in, please see errors.", errors = nil) ⇒ InvalidPerson
constructor
A new instance of InvalidPerson.
Constructor Details
#initialize(msg = "Invalid person details passed in, please see errors.", errors = nil) ⇒ InvalidPerson
Returns a new instance of InvalidPerson.
9 10 11 12 13 14 15 |
# File 'lib/dmao/api/errors/invalid_person.rb', line 9 def initialize(msg="Invalid person details passed in, please see errors.", errors=nil) @errors = errors super(msg) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/dmao/api/errors/invalid_person.rb', line 7 def errors @errors end |