Class EmailAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.dmasone.identity.infrastructure.exception.EmailAlreadyExistsException
- All Implemented Interfaces:
Serializable
Raised when a create-user request attempts to reuse an existing email address.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmailAlreadyExistsException(String message) Creates the exception with an API-safe message.EmailAlreadyExistsException(String message, Throwable cause) Creates the exception while retaining the database conflict that caused it. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmailAlreadyExistsException
Creates the exception with an API-safe message.- Parameters:
message- explanation returned by the global exception handler
-
EmailAlreadyExistsException
Creates the exception while retaining the database conflict that caused it.- Parameters:
message- explanation returned by the global exception handlercause- underlying persistence failure
-