Class SqlFailure


public class SqlFailure extends IOException

A database error that a caller can act on: a transaction that lost a race with another one (CONCURRENCY) or a write a constraint refused (INTEGRITY).

Applications see this type. The backend reports the same failures as its own ConcurrencyFailureException and DataIntegrityViolationException.

  • Field Details

    • CONCURRENCY

      public static final int CONCURRENCY
      A deadlock, a serialization failure or a lock that could not be had: the transaction can be run again.
      See Also:
    • INTEGRITY

      public static final int INTEGRITY
      A unique, foreign key, check or NOT NULL constraint refused the write.
      See Also:
  • Constructor Details

  • Method Details