Exception: JsonApiClient::Errors::NotFound

Inherits:
ServerError show all
Defined in:
lib/json_api_client/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#env

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ NotFound

Returns a new instance of NotFound.



70
71
72
73
74
75
# File 'lib/json_api_client/errors.rb', line 70

def initialize(uri)
  @uri = uri

  msg = "Couldn't find resource at: #{uri.to_s}"
  super nil, msg
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



69
70
71
# File 'lib/json_api_client/errors.rb', line 69

def uri
  @uri
end