class DubDubDub::ResponseError

There was an unhandled response. Contains a reference to the originating error.

Constants

STATUSES

Pulled from rest-client, thanks!

Attributes

code[R]
error[R]

Public Class Methods

new(error, code) click to toggle source
# File lib/dubdubdub/exceptions.rb, line 79
def initialize(error, code)
  @error = error
  @code = code.to_i
end

Public Instance Methods

message()
Alias for: to_s
status_message() click to toggle source
# File lib/dubdubdub/exceptions.rb, line 84
def status_message
  STATUSES[code.to_i]
end
to_s() click to toggle source
# File lib/dubdubdub/exceptions.rb, line 88
def to_s
  "#{code}: #{status_message} => #{error.class.name}: #{error.message}"
end
Also aliased as: message