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:
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 relatedHttp3ErrorCode
.
-
-
-
Constructor Detail
-
Http3Exception
public Http3Exception(Http3ErrorCode errorCode, @Nullable @Nullable java.lang.String message)
Create a new instance.- Parameters:
errorCode
- theHttp3ErrorCode
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
- theHttp3ErrorCode
that caused this exception.message
- the message to include.cause
- theThrowable
to wrap.
-
-
Method Detail
-
errorCode
public Http3ErrorCode errorCode()
Returns the relatedHttp3ErrorCode
.- Returns:
- the
Http3ErrorCode
.
-
-