Package jakarta.data.exceptions
Class EntityExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.data.exceptions.DataException
jakarta.data.exceptions.EntityExistsException
- All Implemented Interfaces:
Serializable
Indicates that an entity cannot be inserted into the database
because an entity with same unique identifier already exists in the database.
- See Also:
-
Constructor Summary
ConstructorDescriptionEntityExistsException
(String message) Constructs a newEntityExistsException
with the specified detail message.EntityExistsException
(String message, Throwable cause) Constructs a newEntityExistsException
with the specified detail message and cause.EntityExistsException
(Throwable cause) Constructs a newEntityExistsException
with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EntityExistsException
Constructs a newEntityExistsException
with the specified detail message.- Parameters:
message
- the detail message.
-
EntityExistsException
Constructs a newEntityExistsException
with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- another exception or error that caused this exception. Null indicates that no other cause is specified.
-
EntityExistsException
Constructs a newEntityExistsException
with the specified cause.- Parameters:
cause
- the cause.
-