Sha256: 399b80aa042490e55ea7e8c0531515c13773fdc63273af5732250f993279b02e
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
=begin The class will handle response failures coming from Onfido It's main purpose is to produce meaningful error messages to the user e.g. RequestError: Authorization error: please re-check your credentials Users can also rescue the error and insect its type and affected fields as specified in the Onfido documentation e.g. begin # error being raised rescue Onfido::RequestError => e e.type e.fields end =end module Onfido class RequestError < StandardError attr_accessor :type, :fields, :response_code end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
onfido-0.0.3 | lib/onfido/request_error.rb |
onfido-0.0.2 | lib/onfido/request_error.rb |
onfido-0.0.1 | lib/onfido/request_error.rb |