Exception: Tripod::Errors::ResourceNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Tripod::Errors::ResourceNotFound
- Defined in:
- lib/tripod/errors/resource_not_found.rb
Overview
not found error.
Instance Attribute Summary collapse
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri = nil) ⇒ ResourceNotFound
constructor
A new instance of ResourceNotFound.
- #message ⇒ Object
Constructor Details
#initialize(uri = nil) ⇒ ResourceNotFound
Returns a new instance of ResourceNotFound.
9 10 11 |
# File 'lib/tripod/errors/resource_not_found.rb', line 9 def initialize(uri=nil) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object
Returns the value of attribute uri.
7 8 9 |
# File 'lib/tripod/errors/resource_not_found.rb', line 7 def uri @uri end |
Instance Method Details
#message ⇒ Object
13 14 15 16 17 |
# File 'lib/tripod/errors/resource_not_found.rb', line 13 def msg = "Resource Not Found" msg += ": #{@uri.to_s}" if @uri msg end |