Exception: Db2Query::QueryArgumentError

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

Instance Method Summary collapse

Constructor Details

#initialize(query_name, arg_key) ⇒ QueryArgumentError

Returns a new instance of QueryArgumentError.



83
84
85
86
87
# File 'lib/db2_query/error.rb', line 83

def initialize(query_name, arg_key)
  @query_name = query_name
  @arg_key = arg_key
  super(message)
end

Instance Method Details

#messageObject



89
90
91
# File 'lib/db2_query/error.rb', line 89

def message
  "Data type of `#{@arg_key}` not found at `:#{@query_name}` query definitions"
end