public class RejectException extends RuntimeException
MemorySafeLinkedBlockingQueue when an element cannot be accepted.| Constructor and Description |
|---|
RejectException()
Constructs a
RejectException with no detail message. |
RejectException(String message)
Constructs a
RejectException with the specified detail message. |
RejectException(String message,
Throwable cause)
Constructs a
RejectException with the specified detail message and cause. |
RejectException(Throwable cause)
Constructs a
RejectException with the specified cause. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RejectException()
RejectException with no detail message. The cause is not initialized, and may subsequently be initialized by a
call to initCause.public RejectException(String message)
RejectException with the specified detail message. The cause is not initialized, and may subsequently be
initialized by a call to initCause.message - the detail messagepublic RejectException(String message, Throwable cause)
RejectException with the specified detail message and cause.message - the detail messagecause - the cause (which is saved for later retrieval by the Throwable.getCause() method)public RejectException(Throwable cause)
RejectException with the specified cause. The detail message is set to (cause == null ? null :
cause.toString()) (which typically contains the class and detail message of cause).cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.