Sha256: 64fc2065c2868d1a91322438ca718935052f3b9317f6c2a8cf7e3475c0ab307d

Contents?: true

Size: 1.45 KB

Versions: 14

Compression:

Stored size: 1.45 KB

Contents

module HTTP2
  # Stream, connection, and compressor exceptions.
  module Error
    class Error < StandardError; end

    # Raised if connection header is missing or invalid indicating that
    # this is an invalid HTTP 2.0 request - no frames are emitted and the
    # connection must be aborted.
    class HandshakeError < Error; end

    # Raised by stream or connection handlers, results in GOAWAY frame
    # which signals termination of the current connection. You *cannot*
    # recover from this exception, or any exceptions subclassed from it.
    class ProtocolError < Error; end

    # Raised on any header encoding / decoding exception.
    #
    # @see ProtocolError
    class CompressionError < ProtocolError; end

    # Raised on invalid flow control frame or command.
    #
    # @see ProtocolError
    class FlowControlError < ProtocolError; end

    # Raised on invalid stream processing: invalid frame type received or
    # sent, or invalid command issued.
    class InternalError < ProtocolError; end

    #
    # -- Recoverable errors -------------------------------------------------
    #

    # Raised if stream has been closed and new frames cannot be sent.
    class StreamClosed < Error; end

    # Raised if connection has been closed (or draining) and new stream
    # cannot be opened.
    class ConnectionClosed < Error; end

    # Raised if stream limit has been reached and new stream cannot be opened.
    class StreamLimitExceeded < Error; end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
http-2-0.11.0 lib/http/2/error.rb
http-2-0.10.2 lib/http/2/error.rb
http-2-0.10.1 lib/http/2/error.rb
http-2-0.10.0 lib/http/2/error.rb
http-2-0.9.1 lib/http/2/error.rb
http-2-0.9.0 lib/http/2/error.rb
http-2-0.8.4 lib/http/2/error.rb
http-2-0.8.3 lib/http/2/error.rb
http-2-0.8.2 lib/http/2/error.rb
http-2-0.8.1 lib/http/2/error.rb
mieps_http-2-0.8.2 lib/http/2/error.rb
mieps_http-2-0.8.1 lib/http/2/error.rb
mieps_http-2-0.8.0 lib/http/2/error.rb
http-2-0.8.0 lib/http/2/error.rb