Exception: StrokeDB::SlotNotFoundError
- Defined in:
- lib/strokedb/document.rb
Overview
Raised on unexisting document access.
Example:
document.slot_that_does_not_exist_ever
Instance Attribute Summary collapse
-
#slotname ⇒ Object
readonly
Returns the value of attribute slotname.
Instance Method Summary collapse
-
#initialize(slotname) ⇒ SlotNotFoundError
constructor
A new instance of SlotNotFoundError.
- #inspect ⇒ Object
- #message ⇒ Object
Constructor Details
permalink #initialize(slotname) ⇒ SlotNotFoundError
Returns a new instance of SlotNotFoundError.
25 26 27 |
# File 'lib/strokedb/document.rb', line 25 def initialize(slotname) @slotname = slotname end |
Instance Attribute Details
Instance Method Details
permalink #inspect ⇒ Object
[View source]
33 34 35 |
# File 'lib/strokedb/document.rb', line 33 def inspect "#<#{self.class.name}: #{}>" end |
permalink #message ⇒ Object
[View source]
29 30 31 |
# File 'lib/strokedb/document.rb', line 29 def "Can't find slot #{@slotname}" end |