lib/protocol/http/error.rb in protocol-http-0.1.0 vs lib/protocol/http/error.rb in protocol-http-0.2.0
- old
+ new
@@ -21,30 +21,7 @@
module Protocol
module HTTP
class Error < StandardError
end
-
- # The request was invalid/malformed in some way.
- class BadRequest < Error
- 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
- def initialize(message, code = nil)
- super(message)
-
- @code = code
- end
-
- attr :code
- end
end
end