Exception: Shift::Api::Core::Errors::NotFound

Inherits:
ServerError show all
Defined in:
lib/shift/api/core/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#env

Class Method Summary collapse

Instance Method Summary collapse

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

#uriObject (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

#messageObject



49
50
51
# File 'lib/shift/api/core/errors.rb', line 49

def message
  "Couldn't find resource at: #{ uri }"
end