lib/http2/errors.rb in http2-0.0.32 vs lib/http2/errors.rb in http2-0.0.33

- old
+ new

@@ -1,11 +1,18 @@ # This class holds various classes for error-handeling. class Http2::Errors - class Http2error < RuntimeError + class BaseError < RuntimeError attr_accessor :response end - class Noaccess < Http2error; end - class Internalserver < Http2error; end - class Notfound < Http2error; end - class Badrequest < Http2error; end + class Noaccess < BaseError; end + + class Internalserver < BaseError; end + + class Notfound < BaseError; end + + class Badrequest < BaseError; end + + class Unauthorized < BaseError; end + + class UnsupportedMediaType < BaseError; end end