class Beaver::APIException
Class for exceptions when there is a network error, status code error, etc.
Attributes
response[R]
response_code[R]
Public Class Methods
new(reason, response)
click to toggle source
The constructor. @param [String] The reason for raising an exception. @param [HttpResponse] The HttpReponse of the API call.
Calls superclass method
# File lib/beaver/exceptions/api_exception.rb, line 14 def initialize(reason, response) super(reason) @response = response @response_code = response.status_code end