Exception: AstroInsight::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/astroinsight/error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#response_body, #status_code

Instance Method Summary collapse

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(message, status_code = 422, response_body = nil, errors = {})
  @errors = errors
  super(message, status_code, response_body)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



17
18
19
# File 'lib/astroinsight/error.rb', line 17

def errors
  @errors
end