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

      public class H2ConnectionException
      extends IOException

  Signals fatal HTTP/2 protocol violation that renders the actual HTTP/2 connection unreliable.
  Since:
    5.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `H2ConnectionException(H2Error error, String message)`
    `H2ConnectionException(int code, String message)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCode()`

    - ### 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

    - #### H2ConnectionException

          public H2ConnectionException(H2Error error,
                               String message)

    - #### H2ConnectionException

          public H2ConnectionException(int code,
                               String message)

  - ### Method Detail

    - #### getCode

          public int getCode()

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.