MongrelDB::ConflictError
Inherits MongrelDB::MongrelDBError < Exception < Reference < Object
Raised for HTTP 409 responses -- a unique, foreign-key, check, or trigger
constraint violation. Carries the server's structured error code (e.g.
UNIQUE_VIOLATION) and, when the daemon reports one, the index of the
offending operation within the transaction.
Constructors
Instance methods
error_code
The server's structured error code, when present (e.g.
UNIQUE_VIOLATION, FK_VIOLATION). Empty string when the server did
not supply one.
op_index
The index of the offending operation within a transaction commit, when
the daemon reports one. nil otherwise.