Exception: Db2Query::ColumnError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/db2_query/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(def_cols, res_cols) ⇒ ColumnError

Returns a new instance of ColumnError.



20
21
22
23
24
# File 'lib/db2_query/error.rb', line 20

def initialize(def_cols, res_cols)
  @def_cols = def_cols
  @res_cols = res_cols
  super(message)
end

Instance Method Details

#messageObject



26
27
28
# File 'lib/db2_query/error.rb', line 26

def message
  "Wrong number of columns (query definitions #{@def_cols}, query result #{@res_cols})"
end