Class UsernameTakenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.example.blogs.app.api.user.exception.UsernameTakenException
- All Implemented Interfaces:
Serializable
Thrown when attempting to create a user with an already-existing username.
Mapped to HTTP 409 CONFLICT.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUsernameTakenException(Exception cause) Constructs a new UsernameTakenException 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
-
UsernameTakenException
Constructs a new UsernameTakenException with a default error message.- Parameters:
cause- the underlying cause of the exception
-