Package com.jk.core.exceptions
Class JKException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jk.core.exceptions.JKException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidaNameException
,JKAssertionException
,JKDataAccessException
,JKHttpException
,JKReportException
,JKSecurityException
,JKServerDownException
,JKServiceClientException
,JKTemplateException
,JKTimeoutException
,JKValidationException
,JKXmlException
This class represents exceptions thrown to indicate that an error occurred
within the application.
This exception is a subclass of RuntimeException
.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newJKException
without any specified errors or causes.JKException
(String message) This method constructs aJKException
with a specific error message.JKException
(String message, Throwable cause) This method constructs aJKException
with a specific error message and a cause.JKException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) This method constructs aJKException
with a specific error message, cause, suppression behavior, and stack trace writability.JKException
(Throwable cause) This method constructs aJKException
with a 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
-
JKException
public JKException()This method constructs a newJKException
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.
-
JKException
This method constructs aJKException
with a specific error message.- Parameters:
message
- Specifies the error message explaining the reason for this exception.
-
JKException
This method constructs aJKException
with a specific error message and a cause.- Parameters:
message
- Specifies the error message explaining the reason for this exception.cause
- Specifies the cause of this exception.
-
JKException
public JKException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) This method constructs aJKException
with a specific error message, cause, suppression behavior, and stack trace writability.- Parameters:
message
- Specifies the error message explaining the reason for this exception.cause
- Specifies the cause of this exception.enableSuppression
- Specifies whether suppression is enabled or disabled.writableStackTrace
- Specifies whether the stack trace should be writable.
-
JKException
This method constructs aJKException
with a cause.- Parameters:
cause
- Specifies the cause of this exception.
-
-
Method Details
-
isLogged
public boolean isLogged()This method checks whether this exception is logged or not.- Returns:
- true, if is logged, false otherwise.
-
setLogged
public void setLogged(boolean logged) This method specifies whether this exception is logged or not.- Parameters:
logged
- Specifies whether this exception is logged or not.
-