Exception: Reorm::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Reorm::Error
- Defined in:
- lib/reorm/exceptions.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message, cause = nil) ⇒ Error
constructor
A new instance of Error.
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(, cause=nil) super() @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
11 12 13 |
# File 'lib/reorm/exceptions.rb', line 11 def cause @cause end |