Exception: AstroInsight::ValidationError
- Defined in:
- lib/astroinsight/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, status_code = 422, response_body = nil, errors = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message, status_code = 422, response_body = nil, errors = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
19 20 21 22 |
# File 'lib/astroinsight/error.rb', line 19 def initialize(, status_code = 422, response_body = nil, errors = {}) @errors = errors super(, status_code, response_body) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
17 18 19 |
# File 'lib/astroinsight/error.rb', line 17 def errors @errors end |