Top Description Constructors
jakarta.persistence

public Class RollbackException

extends PersistenceException
Class Inheritance

Thrown by the persistence provider when EntityTransaction#commit() fails.
Since
1.0
See Also
EntityTransaction#commit()

Constructor Summary

AccessConstructor and Description
public
RollbackException()

Constructs a new RollbackException exception with null as its detail message.

public
RollbackException(String
the detail message.
message
)

Constructs a new RollbackException exception with the specified detail message.

public
RollbackException(String
the detail message.
message
,
Throwable
the cause.
cause
)

Constructs a new RollbackException exception with the specified detail message and cause.

public
RollbackException(Throwable
the cause.
cause
)

Constructs a new RollbackException exception with the specified cause.

Constructor Detail

RollbackExceptionback to summary
public RollbackException()

Constructs a new RollbackException exception with null as its detail message.

RollbackExceptionback to summary
public RollbackException(String message)

Constructs a new RollbackException exception with the specified detail message.

Parameters
message:String

the detail message.

RollbackExceptionback to summary
public RollbackException(String message, Throwable cause)

Constructs a new RollbackException exception with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

the cause.

RollbackExceptionback to summary
public RollbackException(Throwable cause)

Constructs a new RollbackException exception with the specified cause.

Parameters
cause:Throwable

the cause.