Class EmailTakenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.example.blogs.app.api.user.exception.EmailTakenException
All Implemented Interfaces:
Serializable

public class EmailTakenException extends RuntimeException
Thrown when attempting to create a user with an already-existing email address. Mapped to HTTP 409 CONFLICT.
See Also:
  • Constructor Details

    • EmailTakenException

      public EmailTakenException(Exception cause)
      Constructs a new EmailTakenException with a default error message.
      Parameters:
      cause - the underlying cause of the exception