Package io.netty.handler.codec.http3
Class Http3Exception
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.netty.handler.codec.http3.Http3Exception
-
- All Implemented Interfaces:
Serializable
public final class Http3Exception extends Exception
An exception related to violate the HTTP3 spec.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Http3Exception(Http3ErrorCode errorCode, @Nullable String message)Create a new instance.Http3Exception(Http3ErrorCode errorCode, String message, @Nullable Throwable cause)Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Http3ErrorCodeerrorCode()Returns the relatedHttp3ErrorCode.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
Http3Exception
public Http3Exception(Http3ErrorCode errorCode, @Nullable @Nullable String message)
Create a new instance.- Parameters:
errorCode- theHttp3ErrorCodethat caused this exception.message- the message to include.
-
Http3Exception
public Http3Exception(Http3ErrorCode errorCode, String message, @Nullable @Nullable Throwable cause)
Create a new instance.- Parameters:
errorCode- theHttp3ErrorCodethat caused this exception.message- the message to include.cause- theThrowableto wrap.
-
-
Method Detail
-
errorCode
public Http3ErrorCode errorCode()
Returns the relatedHttp3ErrorCode.- Returns:
- the
Http3ErrorCode.
-
-