Exception: Sequel::IBMDB::Connection::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sequel/adapters/ibmdb.rb

Overview

Error class for exceptions raised by the connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, sqlstate) ⇒ Error

Returns a new instance of Error.



41
42
43
44
# File 'lib/sequel/adapters/ibmdb.rb', line 41

def initialize(message, sqlstate)
  @sqlstate = sqlstate
  super(message)
end

Instance Attribute Details

#sqlstateObject (readonly)

Returns the value of attribute sqlstate.



39
40
41
# File 'lib/sequel/adapters/ibmdb.rb', line 39

def sqlstate
  @sqlstate
end