Exception: SakaiInfo::ObjectNotFoundException

Inherits:
SakaiException show all
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

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

#classnameObject



26
27
28
# File 'lib/sakai-info/exceptions.rb', line 26

def classname
  @missing_class.name
end