class Pepipost::APIException

Attributes

response_body[R]

value store

response_code[R]

value store

Public Class Methods

new(reason, response_code, response_body) click to toggle source

The HTTP response code from the API request @param [String] the reason for raising an exception @param [Numeric] the HTTP response code from the API request @param [Object] the HTTP unprased response from the API request

Calls superclass method
# File lib/pepipost/api_exception.rb, line 13
def initialize(reason, response_code, response_body)
  super(reason)
  @response_code = response_code
  @response_body = response_body
end