Exception: Shift::Api::Core::Errors::NotFound
- Inherits:
-
ServerError
- Object
- StandardError
- ApiError
- ServerError
- Shift::Api::Core::Errors::NotFound
- Defined in:
- lib/shift/api/core/errors.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Attributes inherited from ApiError
Class Method Summary collapse
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.
45 46 47 |
# File 'lib/shift/api/core/errors.rb', line 45 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
44 45 46 |
# File 'lib/shift/api/core/errors.rb', line 44 def uri @uri end |
Class Method Details
.from_jsonapi_client(ex) ⇒ Object
53 54 55 |
# File 'lib/shift/api/core/errors.rb', line 53 def self.from_jsonapi_client(ex) new(ex.uri) end |
Instance Method Details
#message ⇒ Object
49 50 51 |
# File 'lib/shift/api/core/errors.rb', line 49 def "Couldn't find resource at: #{ uri }" end |