Exception: DBI::DatabaseError

Inherits:
Error
  • Object
show all
Defined in:
lib/dbi.rb

Overview

Exception for errors related to the database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errstr = "", err = nil, state = nil) ⇒ DatabaseError

Returns a new instance of DatabaseError.



149
150
151
152
# File 'lib/dbi.rb', line 149

def initialize(errstr="", err=nil, state=nil)
   super(errstr)
   @err, @errstr, @state = err, errstr, state
end

Instance Attribute Details

#errObject (readonly)

Returns the value of attribute err.



147
148
149
# File 'lib/dbi.rb', line 147

def err
  @err
end

#errstrObject (readonly)

Returns the value of attribute errstr.



147
148
149
# File 'lib/dbi.rb', line 147

def errstr
  @errstr
end

#stateObject (readonly)

Returns the value of attribute state.



147
148
149
# File 'lib/dbi.rb', line 147

def state
  @state
end