Exception: Amply::Exceptions::ResourceNotFoundException
- Inherits:
-
StandardError
- Object
- StandardError
- Amply::Exceptions::ResourceNotFoundException
- Defined in:
- lib/amply/exceptions/resource_not_found_exception.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResourceNotFoundException
constructor
A new instance of ResourceNotFoundException.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ResourceNotFoundException
Returns a new instance of ResourceNotFoundException.
8 9 10 11 12 |
# File 'lib/amply/exceptions/resource_not_found_exception.rb', line 8 def initialize(response) @errors = JSON.parse(response.body, symbolize_names: true)[:errors] super end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/amply/exceptions/resource_not_found_exception.rb', line 6 def errors @errors end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/amply/exceptions/resource_not_found_exception.rb', line 14 def 'The resource was not found while making an API request' end |