Class PersistentQueueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.wso2.carbon.logging.appender.http.utils.queue.exception.PersistentQueueException
- All Implemented Interfaces:
Serializable
This class implements exception to be used in PersistentQueue.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for PersistentQueueErrorTypes. -
Constructor Summary
ConstructorsConstructorDescriptionPersistentQueueException(PersistentQueueException.PersistentQueueErrorTypes errorType, String message) Constructor for PersistentQueueException.PersistentQueueException(PersistentQueueException.PersistentQueueErrorTypes errorType, String message, Throwable cause) Constructor for PersistentQueueException. -
Method Summary
Modifier and TypeMethodDescriptionGet the error type.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PersistentQueueException
public PersistentQueueException(PersistentQueueException.PersistentQueueErrorTypes errorType, String message) Constructor for PersistentQueueException.- Parameters:
errorType- error typemessage- error message
-
PersistentQueueException
public PersistentQueueException(PersistentQueueException.PersistentQueueErrorTypes errorType, String message, Throwable cause) Constructor for PersistentQueueException.- Parameters:
errorType- error typemessage- error messagecause- cause of the exception
-
-
Method Details
-
getErrorType
Get the error type.- Returns:
- error type
-