class MoesifApi::APIException
Attributes
context[R]
response_code[R]
Public Class Methods
new(reason, context)
click to toggle source
The constructor. @param [String] The reason for raising an exception @param [HttpContext] The HttpContext
of the API call.
Calls superclass method
# File lib/moesif_api/exceptions/api_exception.rb, line 10 def initialize(reason, context) super(reason) @context = context @response_code = context.response.status_code end