Class CloseNowException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CloseNowException
    extends java.io.IOException
    This exception is thrown to signal to the Tomcat internals that an error has occurred that requires the connection to be closed. For multiplexed protocols such as HTTP/2, this means the channel must be closed but the connection can continue. For non-multiplexed protocols, the connection must be closed. It corresponds to ErrorState.CLOSE_NOW.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CloseNowException()
      Creates a new CloseNowException with no detail message.
      CloseNowException​(java.lang.String message)
      Creates a new CloseNowException with the specified detail message.
      CloseNowException​(java.lang.String message, java.lang.Throwable cause)
      Creates a new CloseNowException with the specified detail message and cause.
      CloseNowException​(java.lang.Throwable cause)
      Creates a new CloseNowException 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

      • CloseNowException

        public CloseNowException()
        Creates a new CloseNowException with no detail message.
      • CloseNowException

        public CloseNowException​(java.lang.String message,
                                 java.lang.Throwable cause)
        Creates a new CloseNowException with the specified detail message and cause.
        Parameters:
        message - the detail message
        cause - the cause
      • CloseNowException

        public CloseNowException​(java.lang.String message)
        Creates a new CloseNowException with the specified detail message.
        Parameters:
        message - the detail message
      • CloseNowException

        public CloseNowException​(java.lang.Throwable cause)
        Creates a new CloseNowException with the specified cause.
        Parameters:
        cause - the cause