class Hawkei::RequestError
Request
to API Error
Request
to API Error
Attributes
http_body[R]
http_message[R]
http_status[R]
http_status_type[R]
Public Class Methods
new(response, message: nil)
click to toggle source
# File lib/hawkei/errors.rb, line 28 def initialize(response, message: nil) @http_status = response.code.to_i @http_status_type = response.code_type @http_body = response.body @http_message = message || response.message end
Public Instance Methods
to_s()
click to toggle source
# File lib/hawkei/errors.rb, line 35 def to_s "Status #{http_status}: #{http_message}" end