Class: CommonRepositoryModel::ObjectNotFoundError

Inherits:
ActiveFedora::ObjectNotFoundError
  • Object
show all
Defined in:
lib/common_repository_model/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original_exception = nil) ⇒ ObjectNotFoundError

Returns a new instance of ObjectNotFoundError.



5
6
7
8
# File 'lib/common_repository_model/exceptions.rb', line 5

def initialize(message, original_exception = nil)
  super(message)
  @original_exception = original_exception || self
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



4
5
6
# File 'lib/common_repository_model/exceptions.rb', line 4

def original_exception
  @original_exception
end