class CloudParty::Errors::RequestError

Public Class Methods

new(message, method, endpoint, code, body) click to toggle source
Calls superclass method
# File lib/cloud_party/exception.rb, line 13
def initialize(message, method, endpoint, code, body)
  super(message)
  @method   = method
  @endpoint = endpoint
  @code     = code
  @body = body
end

Public Instance Methods

error_string() click to toggle source

override error_string to provide your own error_string

# File lib/cloud_party/exception.rb, line 30
def error_string
  # This method should be overridden
end
extra_string() click to toggle source
# File lib/cloud_party/exception.rb, line 25
def extra_string
  # This method should be overridden
end
to_s() click to toggle source
# File lib/cloud_party/exception.rb, line 21
def to_s
  [error_string.squish, extra_string].join("\n")
end