Exception: JsonApiClient::Errors::NotFound
- Inherits:
-
ServerError
- Object
- Exception
- ApiError
- ServerError
- JsonApiClient::Errors::NotFound
- Defined in:
- lib/json_api_client/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.
21 22 23 |
# File 'lib/json_api_client/errors.rb', line 21 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
20 21 22 |
# File 'lib/json_api_client/errors.rb', line 20 def uri @uri end |
Instance Method Details
#message ⇒ Object
24 25 26 |
# File 'lib/json_api_client/errors.rb', line 24 def "Couldn't find resource at: #{uri.to_s}" end |