001package io.ebean;
002
003import javax.persistence.PessimisticLockException;
004
005/**
006 * Thrown when failing to acquire a pessimistic lock.
007 * <p>
008 * Typically when "select for update nowait" or "select for update" is being used and
009 * the lock can not be obtained (as it is held by another transaction).
010 * </p>
011 */
012public class AcquireLockException extends PessimisticLockException {
013  private static final long serialVersionUID = -8585962352965876691L;
014
015  /**
016   * Create with a message and cause.
017   */
018  public AcquireLockException(String message, Throwable cause) {
019    super(message, cause);
020  }
021}