Exception: Reorm::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/reorm/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause = nil) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/reorm/exceptions.rb', line 7

def initialize(message, cause=nil)
	super(message)
	@cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



11
12
13
# File 'lib/reorm/exceptions.rb', line 11

def cause
  @cause
end