Package vaultWeb.exceptions
Class DuplicateUsernameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
vaultWeb.exceptions.DuplicateUsernameException
- All Implemented Interfaces:
Serializable
Thrown when a user tries to register with a username that already exists.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicateUsernameException(String message) Constructs a new DuplicateUsernameException with a custom 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
-
DuplicateUsernameException
Constructs a new DuplicateUsernameException with a custom message.- Parameters:
message- the detail message explaining the exception
-