DatabaseException class

Database exception.

Implemented types
  • Exception

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.
read-only
message → String
Database exception message.
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Properties

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