Java javax.persistence OptimisticLockException fields, constructors, methods, implement or subclass

Example usage for Java javax.persistence OptimisticLockException fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.persistence OptimisticLockException.

The text is from its open source code.

Constructor

OptimisticLockException(String message)
Constructs a new OptimisticLockException exception with the specified detail message.
OptimisticLockException(Throwable cause)
Constructs a new OptimisticLockException exception with the specified cause.
OptimisticLockException(Object entity)
Constructs a new OptimisticLockException exception with the specified entity.
OptimisticLockException(String message, Throwable cause, Object entity)
Constructs a new OptimisticLockException exception with the specified detail message, cause, and entity.

Method

ObjectgetEntity()
Returns the entity that caused this exception.
StringgetMessage()
Returns the detail message string of this throwable.