Package com.jk.core.exceptions
Class JKDisabledUserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jk.core.exceptions.JKException
com.jk.core.exceptions.JKSecurityException
com.jk.core.exceptions.JKDisabledUserException
- All Implemented Interfaces:
JKNonPrintableException
,Serializable
This class represents exception thrown to indicate that a user account is
disabled or inactive.
This exception is a subclass of JKSecurityException
.
This class should be used to represent situations where an authentication attempt is made using a user account that is disabled or inactive.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newJKDisabledUserException
without any specified errors or causes.This method constructs aJKDisabledUserException
with the disabled user.JKDisabledUserException
(String message) This method constructs aJKDisabledUserException
with a specific error message.JKDisabledUserException
(String message, Throwable cause) This method constructs aJKDisabledUserException
with a specific error message and a cause.JKDisabledUserException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) This method constructs aJKDisabledUserException
with a specific error message, cause, suppression behavior, and stack trace writability.JKDisabledUserException
(Throwable cause) This method constructs aJKDisabledUserException
with a cause. -
Method Summary
Methods inherited from class com.jk.core.exceptions.JKException
isLogged, setLogged
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JKDisabledUserException
public JKDisabledUserException()This method constructs a newJKDisabledUserException
without any specified errors or causes.This constructor is typically used when the exception is thrown to represent a specific error condition without additional details.
-
JKDisabledUserException
public JKDisabledUserException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) This method constructs aJKDisabledUserException
with a specific error message, cause, suppression behavior, and stack trace writability.- Parameters:
message
- Specifies the error message explaining the disabled user situation.cause
- Specifies the cause of this exception.enableSuppression
- Specifies whether suppression is enabled or disabled.writableStackTrace
- Specifies whether the stack trace should be writable.
-
JKDisabledUserException
This method constructs aJKDisabledUserException
with a specific error message and a cause.- Parameters:
message
- Specifies the error message explaining the disabled user situation.cause
- Specifies the cause of this exception.
-
JKDisabledUserException
This method constructs aJKDisabledUserException
with a specific error message.- Parameters:
message
- Specifies the error message explaining the disabled user situation.
-
JKDisabledUserException
This method constructs aJKDisabledUserException
with a cause.- Parameters:
cause
- Specifies the cause of this exception.
-
JKDisabledUserException
This method constructs aJKDisabledUserException
with the disabled user.- Parameters:
user
- Specifies the disabled user.
-
-
Method Details
-
getUser
This method gets the disabled user associated with this exception.- Returns:
- the disabled user associated with this exception.
-