Exception: FlexCommerceApi::Error::NotFound

Inherits:
InternalServer show all
Defined in:
lib/flex_commerce_api/error/not_found.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#request_env, #response_env

Instance Method Summary collapse

Methods inherited from InternalServer

#raven_context

Constructor Details

#initialize(uri) ⇒ NotFound

Returns a new instance of NotFound.



5
6
7
# File 'lib/flex_commerce_api/error/not_found.rb', line 5

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



4
5
6
# File 'lib/flex_commerce_api/error/not_found.rb', line 4

def uri
  @uri
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/flex_commerce_api/error/not_found.rb', line 8

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