Package org.apache.hc.core5.http2
Class H2ConnectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hc.core5.http2.H2ConnectionException
- All Implemented Interfaces:
Serializable
Signals fatal HTTP/2 protocol violation that renders the actual
HTTP/2 connection unreliable.
- Since:
- 5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionH2ConnectionException
(int code, String message) H2ConnectionException
(H2Error error, String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
code
private final int code
-
-
Constructor Details
-
H2ConnectionException
-
H2ConnectionException
-
-
Method Details
-
getCode
public int getCode()
-