java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jtrim2.concurrent.collections.TerminatedQueueException
- All Implemented Interfaces:
Serializable
Thrown if a queue was shut down, and still trying to add or remove element.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates the exception withnullas itsdetail message.TerminatedQueueException(String message) Creates the exception with a specificdetail message.TerminatedQueueException(String message, Throwable cause) Creates the exception with a specificdetail messageandcause.protectedTerminatedQueueException(String message, Throwable cause, boolean writableStackTrace) Constructs a new exception with the specified detail message, cause, and writable stack trace enabled or disabled.Creates the exception with a specificcause. -
Method Summary
Modifier and TypeMethodDescriptionstatic TerminatedQueueExceptionReturns a new instance ofTerminatedQueueExceptionwithout stack trace information.static TerminatedQueueExceptionwithoutStackTrace(String message, Throwable cause) Returns a new instance ofTerminatedQueueExceptionwithout stack trace information.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TerminatedQueueException
Creates the exception with a specificcause. Thedetail messagewill be the string returned by thecause.toString()call.- Parameters:
cause- the causing exception of theTerminatedQueueException. The cause ofTerminatedQueueExceptionshould usually benullbut it is possible to specify the cause to preserve the stack trace of other exceptions signaling termination. This argument can benullif there is no cause.
-
TerminatedQueueException
Creates the exception with a specificdetail messageandcause.- Parameters:
message- the message to be returned bygetMessage(). This argument can benull.cause- the causing exception of theTerminatedQueueException. The cause ofTerminatedQueueExceptionshould usually benullbut it is possible to specify the cause to preserve the stack trace of other exceptions signaling termination. This argument can benullif there is no cause.
-
TerminatedQueueException
Creates the exception with a specificdetail message.- Parameters:
message- the message to be returned bygetMessage(). This argument can benull.
-
TerminatedQueueException
public TerminatedQueueException()Creates the exception withnullas itsdetail message. -
TerminatedQueueException
Constructs a new exception with the specified detail message, cause, and writable stack trace enabled or disabled.- Parameters:
message- the detail message.cause- the cause. (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)writableStackTrace- whether or not the stack trace should be writable
-
-
Method Details
-
withoutStackTrace
Returns a new instance ofTerminatedQueueExceptionwithout stack trace information. The stack trace cannot be set later.- Returns:
- a new instance of
TerminatedQueueExceptionwithout stack trace information. This method never returnsnull.
-
withoutStackTrace
Returns a new instance ofTerminatedQueueExceptionwithout stack trace information. The stack trace cannot be set later.- Parameters:
message- the message to be returned bygetMessage(). This argument can benull.cause- cause the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)- Returns:
- a new instance of
TerminatedQueueExceptionwithout stack trace information. This method never returnsnull.
-