Exception: Db2Query::ArgumentError
- Inherits:
-
StandardError
- Object
- StandardError
- Db2Query::ArgumentError
- Defined in:
- lib/db2_query/error.rb
Instance Method Summary collapse
-
#initialize(given, expected) ⇒ ArgumentError
constructor
A new instance of ArgumentError.
- #message ⇒ Object
Constructor Details
#initialize(given, expected) ⇒ ArgumentError
Returns a new instance of ArgumentError.
8 9 10 11 12 |
# File 'lib/db2_query/error.rb', line 8 def initialize(given, expected) @given = given @expected = expected super() end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/db2_query/error.rb', line 14 def "Wrong number of arguments (given #{@given}, expected #{@expected})" end |