Enum diesel::result::DatabaseErrorKind [−][src]
The kind of database error that occurred.
This is not meant to exhaustively cover all possible errors, but is used to identify errors which are commonly recovered from programmatically. This enum is not intended to be exhaustively matched, and new variants may be added in the future without a major version bump.
Variants
UniqueViolation
A unique constraint was violated.
ForeignKeyViolation
A foreign key constraint was violated.
UnableToSendCommand
The query could not be sent to the database due to a protocol violation.
An example of a case where this would occur is if you attempted to send a query with more than 65000 bind parameters using PostgreSQL.
Trait Implementations
impl Debug for DatabaseErrorKind
[src]
[+]
impl Debug for DatabaseErrorKind
impl Clone for DatabaseErrorKind
[src]
[+]
impl Clone for DatabaseErrorKind
impl Copy for DatabaseErrorKind
[src]
impl Copy for DatabaseErrorKind
Auto Trait Implementations
impl Send for DatabaseErrorKind
impl Send for DatabaseErrorKind
impl Sync for DatabaseErrorKind
impl Sync for DatabaseErrorKind