Exception: Checkr::APIError

Inherits:
CheckrError show all
Defined in:
lib/checkr/errors/api_error.rb

Instance Attribute Summary

Attributes inherited from CheckrError

#http_body, #http_status, #json_body, #message

Class Method Summary collapse

Methods inherited from CheckrError

#initialize, #to_s

Constructor Details

This class inherits a constructor from Checkr::CheckrError

Class Method Details

.generic(rcode, rbody) ⇒ Object



4
5
6
7
# File 'lib/checkr/errors/api_error.rb', line 4

def self.generic(rcode, rbody)
  self.new("Invalid response object from API: #{rbody.inspect} " +
           "(HTTP response code was #{rcode})", rcode, rbody)
end