Class RejectException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RejectException
    extends java.lang.RuntimeException
    Exception thrown by an MemorySafeLinkedBlockingQueue when a element cannot be accepted.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RejectException()
      Constructs a RejectException with no detail message.
      RejectException​(java.lang.String message)
      Constructs a RejectException with the specified detail message.
      RejectException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a RejectException with the specified detail message and cause.
      RejectException​(java.lang.Throwable cause)
      Constructs a RejectException with the specified cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RejectException

        public RejectException()
        Constructs a RejectException with no detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.
      • RejectException

        public RejectException​(java.lang.String message)
        Constructs a RejectException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.
        Parameters:
        message - the detail message
      • RejectException

        public RejectException​(java.lang.String message,
                               java.lang.Throwable cause)
        Constructs a RejectException with the specified detail message and cause.
        Parameters:
        message - the detail message
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)
      • RejectException

        public RejectException​(java.lang.Throwable cause)
        Constructs a 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).
        Parameters:
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method)