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.



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

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

Instance Attribute Details

#sqlstateObject (readonly)

Returns the value of attribute sqlstate.



37
38
39
# File 'lib/sequel/adapters/ibmdb.rb', line 37

def sqlstate
  @sqlstate
end