Class Http3Exception

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Http3Exception
    extends java.lang.Exception
    An exception related to violate the HTTP3 spec.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Http3Exception​(Http3ErrorCode errorCode, @Nullable java.lang.String message)
      Create a new instance.
      Http3Exception​(Http3ErrorCode errorCode, java.lang.String message, @Nullable java.lang.Throwable cause)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Http3ErrorCode errorCode()
      Returns the related Http3ErrorCode.
      • 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

      • Http3Exception

        public Http3Exception​(Http3ErrorCode errorCode,
                              @Nullable
                              @Nullable java.lang.String message)
        Create a new instance.
        Parameters:
        errorCode - the Http3ErrorCode that caused this exception.
        message - the message to include.
      • Http3Exception

        public Http3Exception​(Http3ErrorCode errorCode,
                              java.lang.String message,
                              @Nullable
                              @Nullable java.lang.Throwable cause)
        Create a new instance.
        Parameters:
        errorCode - the Http3ErrorCode that caused this exception.
        message - the message to include.
        cause - the Throwable to wrap.