Exception: Rexec::NotFoundError
- Defined in:
- lib/rexec/error.rb
Overview
Resource not found (404).
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
Attributes inherited from APIError
Instance Method Summary collapse
-
#initialize(resource, resource_id) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(resource, resource_id) ⇒ NotFoundError
Returns a new instance of NotFoundError.
29 30 31 32 33 |
# File 'lib/rexec/error.rb', line 29 def initialize(resource, resource_id) @resource = resource @resource_id = resource_id super(404, "#{resource} '#{resource_id}' not found") end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
27 28 29 |
# File 'lib/rexec/error.rb', line 27 def resource @resource end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id.
27 28 29 |
# File 'lib/rexec/error.rb', line 27 def resource_id @resource_id end |