class Plum::HTTPError
Constants
- ERROR_CODES
Attributes
http2_error_type[R]
Public Class Methods
new(type, message = nil)
click to toggle source
Calls superclass method
# File lib/plum/errors.rb, line 24 def initialize(type, message = nil) @http2_error_type = type super(message) end
Public Instance Methods
http2_error_code()
click to toggle source
# File lib/plum/errors.rb, line 29 def http2_error_code ERROR_CODES[@http2_error_type] end
to_s()
click to toggle source
# File lib/plum/errors.rb, line 33 def to_s "#{@http2_error_type.to_s.upcase}: #{super}" end