Class EmailAlreadyExistsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.dmasone.identity.infrastructure.exception.EmailAlreadyExistsException
All Implemented Interfaces:
Serializable

public class EmailAlreadyExistsException extends RuntimeException
Raised when a create-user request attempts to reuse an existing email address.
See Also:
  • Constructor Details

    • EmailAlreadyExistsException

      public EmailAlreadyExistsException(String message)
      Creates the exception with an API-safe message.
      Parameters:
      message - explanation returned by the global exception handler
    • EmailAlreadyExistsException

      public EmailAlreadyExistsException(String message, Throwable cause)
      Creates the exception while retaining the database conflict that caused it.
      Parameters:
      message - explanation returned by the global exception handler
      cause - underlying persistence failure