Exception: DBI::DatabaseError
Overview
Exception for errors related to the database.
Direct Known Subclasses
DataError, IntegrityError, InternalError, NotSupportedError, OperationalError, ProgrammingError
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#errstr ⇒ Object
readonly
Returns the value of attribute errstr.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(errstr = "", err = nil, state = nil) ⇒ DatabaseError
constructor
A new instance of DatabaseError.
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
#err ⇒ Object (readonly)
Returns the value of attribute err.
147 148 149 |
# File 'lib/dbi.rb', line 147 def err @err end |
#errstr ⇒ Object (readonly)
Returns the value of attribute errstr.
147 148 149 |
# File 'lib/dbi.rb', line 147 def errstr @errstr end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
147 148 149 |
# File 'lib/dbi.rb', line 147 def state @state end |