org.apache.hc.core5.http2

## Class H2StreamResetException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.io.IOException
      - - org.apache.hc.core5.http.HttpStreamResetException
        - - org.apache.hc.core5.http2.H2StreamResetException

- All Implemented Interfaces:
    Serializable

      public class H2StreamResetException
      extends HttpStreamResetException

  Signals HTTP/2 protocol error that renders the actual HTTP/2 data stream unreliable.
  Since:
    5.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `H2StreamResetException(H2Error error, String message)`
    `H2StreamResetException(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

    - #### H2StreamResetException

          public H2StreamResetException(H2Error error,
                                String message)

    - #### H2StreamResetException

          public H2StreamResetException(int code,
                                String message)

  - ### Method Detail

    - #### getCode

          public int getCode()

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