public class RejectException extends RuntimeException
MemorySafeLinkedBlockingQueue when an element cannot be accepted.| 构造器和说明 |
|---|
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. |
public 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–2023 The Apache Software Foundation. All rights reserved.