Exception: LowCardTables::Errors::LowCardIdNotFoundError

Inherits:
LowCardError
  • Object
show all
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

Instance Method Summary collapse

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(message, ids)
  super(message)
  @ids = ids
end

Instance Attribute Details

#idsObject (readonly)

Returns the value of attribute ids.



37
38
39
# File 'lib/low_card_tables/errors.rb', line 37

def ids
  @ids
end