Top Description Fields Constructors
jakarta.data.exceptions

public Class EntityExistsException

extends DataException
Class Inheritance

Indicates that an entity cannot be inserted into the database because an entity with same unique identifier already exists in the database.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
EntityExistsException(String
the detail message.
message
)

Constructs a new EntityExistsException with the specified detail message.

public
EntityExistsException(String
the detail message.
message
,
Throwable
another exception or error that caused this exception. Null indicates that no other cause is specified.
cause
)

Constructs a new EntityExistsException with the specified detail message and cause.

public
EntityExistsException(Throwable
the cause.
cause
)

Constructs a new EntityExistsException with the specified cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.data.exceptions.DataException.serialVersionUID.

Constructor Detail

EntityExistsExceptionback to summary
public EntityExistsException(String message)

Constructs a new EntityExistsException with the specified detail message.

Parameters
message:String

the detail message.

EntityExistsExceptionback to summary
public EntityExistsException(String message, Throwable cause)

Constructs a new EntityExistsException with the specified detail message and cause.

Parameters
message:String

the detail message.

cause:Throwable

another exception or error that caused this exception. Null indicates that no other cause is specified.

EntityExistsExceptionback to summary
public EntityExistsException(Throwable cause)

Constructs a new EntityExistsException with the specified cause.

Parameters
cause:Throwable

the cause.