Exception: Db2Query::ConnectionError

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

Instance Method Summary collapse

Constructor Details

#initialize(odbc_message) ⇒ ConnectionError

Returns a new instance of ConnectionError.



32
33
34
35
# File 'lib/db2_query/error.rb', line 32

def initialize(odbc_message)
  @odbc_message = odbc_message
  super(message)
end

Instance Method Details

#messageObject



37
38
39
# File 'lib/db2_query/error.rb', line 37

def message
  "Unable to activate ODBC DSN connection #{@odbc_message}"
end