DatabaseException class

Database exception.

Implemented types

Constructors

DatabaseException.badParam(String _message)
Creates a bad param exception.
DatabaseException.closed([String _message = 'database is closed'])
Creates a database closed exception.
DatabaseException.databaseNotFound(String _message)
Creates a database not found exception.
DatabaseException.invalidCodec(String _message)
Creates an invalid codec exception.

Properties

code → int
Database exception code.
no setter
hashCode → int
The hash code for this object.
no setterinherited
message → String
Database exception message.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

errBadParam → const int
Bad parameters
errDatabaseClosed → const int
This is sent when an action happen after the database was closed.
errDatabaseNotFound → const int
Database could not be found
errInvalidCodec → const int
This is sent if the codec used does not match the one of the database