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
Methods inherited from ServerError
Constructor Details
#initialize(uri) ⇒ NotFound
Returns a new instance of NotFound.
74 75 76 |
# File 'lib/shift/api/core/errors.rb', line 74 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
73 74 75 |
# File 'lib/shift/api/core/errors.rb', line 73 def uri @uri end |
Class Method Details
.from_jsonapi_client(ex) ⇒ Object
82 83 84 |
# File 'lib/shift/api/core/errors.rb', line 82 def self.from_jsonapi_client(ex) new(ex.uri) end |
Instance Method Details
#message ⇒ Object
78 79 80 |
# File 'lib/shift/api/core/errors.rb', line 78 def "Couldn't find resource at: #{ uri }" end |