Exception: MundoPepino::ResourceNotFound
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- MundoPepino::ResourceNotFound
- Defined in:
- lib/mundo_pepino/base.rb
Overview
Exceptions
Direct Known Subclasses
NotFoundInDatabase, NotFoundInHistoryNorDatabase, WithoutResources
Instance Method Summary collapse
-
#initialize(resource_info = nil) ⇒ ResourceNotFound
constructor
A new instance of ResourceNotFound.
- #message ⇒ Object
Constructor Details
#initialize(resource_info = nil) ⇒ ResourceNotFound
Returns a new instance of ResourceNotFound.
4 5 6 |
# File 'lib/mundo_pepino/base.rb', line 4 def initialize(resource_info=nil) @resource_info = resource_info && " (#{resource_info})" end |
Instance Method Details
#message ⇒ Object
7 8 9 |
# File 'lib/mundo_pepino/base.rb', line 7 def "Resource not found#{@resource_info}" end |