Exception: JSONAPI::Consumer::Errors::NotFound
- Inherits:
-
ServerError
- Object
- StandardError
- ApiError
- ServerError
- JSONAPI::Consumer::Errors::NotFound
- Defined in:
- lib/jsonapi/consumer/errors.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(uri) ⇒ NotFound
constructor
A new instance of NotFound.
- #message ⇒ Object
Constructor Details
#initialize(uri) ⇒ NotFound
Returns a new instance of NotFound.
36 37 38 |
# File 'lib/jsonapi/consumer/errors.rb', line 36 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
35 36 37 |
# File 'lib/jsonapi/consumer/errors.rb', line 35 def uri @uri end |
Instance Method Details
#message ⇒ Object
39 40 41 |
# File 'lib/jsonapi/consumer/errors.rb', line 39 def "Couldn't find resource at: #{uri.to_s}" end |