class SmartHR::Error
Attributes
error_response[R]
status[R]
Public Class Methods
from_response(status, body)
click to toggle source
# File lib/smarthr.rb, line 8 def self.from_response(status, body) APIConnectionError.new("Invalid response #{body.to_hash} (status: #{status})") end
new(message, status = nil, error_response = nil)
click to toggle source
Calls superclass method
# File lib/smarthr.rb, line 15 def initialize(message, status = nil, error_response = nil) @status = status @error_response = error_response super(message) end