Exception: Db2Query::ArgumentError

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

Instance Method Summary collapse

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(message)
end

Instance Method Details

#messageObject



14
15
16
# File 'lib/db2_query/error.rb', line 14

def message
  "Wrong number of arguments (given #{@given}, expected #{@expected})"
end