Class Http2Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.http.http2.Http2Exception
- All Implemented Interfaces:
Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionHttp2Exception(Http2ErrorCode errorCode, String message) Exception with type and message.Http2Exception(Http2ErrorCode errorCode, String message, Throwable cause) Exception with type, message and cause. -
Method Summary
Modifier and TypeMethodDescriptioncode()Error code.booleanWhether this exception reports a malformed HTTP/2 request target.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Http2Exception
Exception with type and message.- Parameters:
errorCode- error codemessage- descriptive message
-
Http2Exception
Exception with type, message and cause.- Parameters:
errorCode- error codemessage- descriptive messagecause- cause
-
-
Method Details
-
code
-
requestTarget
public boolean requestTarget()Whether this exception reports a malformed HTTP/2 request target.- Returns:
- whether this is a request-target error
-