Package com.maker.passwordmaker
Class PasswordException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.maker.passwordmaker.PasswordException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PasswordMakerAccessException
,PasswordMakerInvalidArgumentsException
public sealed class PasswordException
extends RuntimeException
permits PasswordMakerAccessException, PasswordMakerInvalidArgumentsException
A sealed class that represents exceptions related to password handling.
This class is extended by PasswordMakerAccessException and PasswordMakerInvalidArgumentsException.
- Since:
- 2024. 6. 4.
- Author:
- yongjunhong
- See Also:
-
Constructor Summary
ConstructorDescriptionPasswordException
(String message) Constructs a new password exception with the specified detail message.PasswordException
(String message, Throwable cause) Constructs a new password exception with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PasswordException
Constructs a new password exception with the specified detail message and cause.- Parameters:
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage() method)cause
- the cause (which is saved for later retrieval by the Throwable.getCause() method)
-
PasswordException
Constructs a new password exception with the specified detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
-