Exception: Db2Query::ColumnError
- Inherits:
-
StandardError
- Object
- StandardError
- Db2Query::ColumnError
- Defined in:
- lib/db2_query/error.rb
Instance Method Summary collapse
-
#initialize(def_cols, res_cols) ⇒ ColumnError
constructor
A new instance of ColumnError.
- #message ⇒ Object
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() end |
Instance Method Details
#message ⇒ Object
26 27 28 |
# File 'lib/db2_query/error.rb', line 26 def "Wrong number of columns (query definitions #{@def_cols}, query result #{@res_cols})" end |