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.


64
65
66
67
68
69
# File 'lib/json_api_client/errors.rb', line 64

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


63
64
65
# File 'lib/json_api_client/errors.rb', line 63

def uri
  @uri
end