Exception: LowCardTables::Errors::LowCardIdNotFoundError
- Inherits:
-
LowCardError
- Object
- StandardError
- LowCardError
- LowCardTables::Errors::LowCardIdNotFoundError
- Defined in:
- lib/low_card_tables/errors.rb
Overview
Raised when you explicitly ask for a row or rows by ID, and no such ID exists in the database. ids
is included as an attribute of the error class, and contains an array of the IDs that were not found.
Instance Attribute Summary collapse
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
Instance Method Summary collapse
-
#initialize(message, ids) ⇒ LowCardIdNotFoundError
constructor
A new instance of LowCardIdNotFoundError.
Constructor Details
#initialize(message, ids) ⇒ LowCardIdNotFoundError
Returns a new instance of LowCardIdNotFoundError.
32 33 34 35 |
# File 'lib/low_card_tables/errors.rb', line 32 def initialize(, ids) super() @ids = ids end |
Instance Attribute Details
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
37 38 39 |
# File 'lib/low_card_tables/errors.rb', line 37 def ids @ids end |