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
Thrown when attempting to create a user with an already-existing email address.
Mapped to HTTP 409 CONFLICT.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmailTakenException(Exception cause) Constructs a new EmailTakenException with a default error message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmailTakenException
Constructs a new EmailTakenException with a default error message.- Parameters:
cause- the underlying cause of the exception
-