class ThinkificRuby::ApiError
Constants
- DEFAULT_MSG
Attributes
response[R]
status_code[R]
Public Class Methods
new(status_code, response, msg=DEFAULT_MSG)
click to toggle source
we'll still give it an optional error message, but leave it as the default which will tell them to check the status and body in the error object
Calls superclass method
# File lib/thinkific_ruby/api_error.rb, line 9 def initialize(status_code, response, msg=DEFAULT_MSG) @status_code = status_code @response = response super(msg) end