Exception: Rod::IdException
- Inherits:
-
RodException
- Object
- Exception
- RodException
- Rod::IdException
- Defined in:
- lib/rod/exception.rb
Overview
This exception is throw when an objects id is needed, but it is not yet stored in the database. The object might be accessed via object
attribute of the exception.
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(message, object) ⇒ IdException
constructor
A new instance of IdException.
Methods inherited from RodException
Constructor Details
#initialize(message, object) ⇒ IdException
Returns a new instance of IdException.
67 68 69 70 |
# File 'lib/rod/exception.rb', line 67 def initialize(,object) super("The object has not been stored in the DB.") @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
65 66 67 |
# File 'lib/rod/exception.rb', line 65 def object @object end |