Exception: JsonApiClient::Errors::NotFound

Inherits:
ClientError 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.



49
50
51
52
53
54
# File 'lib/json_api_client/errors.rb', line 49

def initialize(uri)
  @uri = uri

  msg = "Resource not found: #{uri.to_s}"
  super nil, msg
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



48
49
50
# File 'lib/json_api_client/errors.rb', line 48

def uri
  @uri
end