PostgreSQLErrorCode class Null safety

Commonly used error codes from PostgreSQL.

When a QueryException.underlyingException is a PostgreSQLException, this PostgreSQLException.code value may be one of the static properties declared in this class.

Constructors

PostgreSQLErrorCode()

Properties

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

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

Operators

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

Constants

duplicateTable → const String
"42P07"
foreignKeyViolation → const String
"23503"
notNullViolation → const String
"23502"
undefinedColumn → const String
"42703"
undefinedTable → const String
"42P01"
uniqueViolation → const String
"23505"