lib/protocol/http2/error.rb in protocol-http2-0.7.1 vs lib/protocol/http2/error.rb in protocol-http2-0.7.2
- old
+ new
@@ -84,18 +84,21 @@
end
attr :code
end
- class HeaderError < ProtocolError
- end
-
class StreamError < ProtocolError
end
class StreamClosed < StreamError
def initialize(message)
super message, STREAM_CLOSED
+ end
+ end
+
+ class HeaderError < StreamClosed
+ def initialize(message)
+ super(message)
end
end
class GoawayError < ProtocolError
end