001package io.ebean.config.dbplatform;
002
003/**
004 * Specific persistence error types we wish to map.
005 */
006public enum DataErrorType {
007
008  /**
009   * Error trying to acquire lock (e.g. failure executing select for update nowait)
010   */
011  AcquireLock,
012
013  /**
014   * Error with a duplicate primary or unique key.
015   */
016  DuplicateKey,
017
018  /**
019   * Data integrity error like an invalid foreign key.
020   */
021  DataIntegrity
022}