Exception: SakaiInfo::ObjectNotFoundException
- Inherits:
-
SakaiException
- Object
- Exception
- SakaiException
- SakaiInfo::ObjectNotFoundException
- Defined in:
- lib/sakai-info/exceptions.rb
Overview
exception to be raised when an object of a certain type cannot be found
Instance Method Summary collapse
- #classname ⇒ Object
-
#initialize(missing_class, identifier) ⇒ ObjectNotFoundException
constructor
A new instance of ObjectNotFoundException.
Constructor Details
#initialize(missing_class, identifier) ⇒ ObjectNotFoundException
Returns a new instance of ObjectNotFoundException.
19 20 21 22 23 24 |
# File 'lib/sakai-info/exceptions.rb', line 19 def initialize(missing_class, identifier) @missing_class = missing_class @identifier = identifier super("Could not find a #{@missing_class.name} object for '#{@identifier}'") end |
Instance Method Details
#classname ⇒ Object
26 27 28 |
# File 'lib/sakai-info/exceptions.rb', line 26 def classname @missing_class.name end |