Exception: PayPro::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PayPro::Error
- Defined in:
- lib/pay_pro/errors.rb
Direct Known Subclasses
AuthenticationError, ConfigurationError, ConnectionError, ResourceNotFoundError, SignatureVerificationError, ValidationError
Instance Method Summary collapse
-
#initialize(message: nil, http_status: nil, http_body: nil, http_headers: nil, code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message: nil, http_status: nil, http_body: nil, http_headers: nil, code: nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pay_pro/errors.rb', line 5 def initialize( message: nil, http_status: nil, http_body: nil, http_headers: nil, code: nil ) @message = @http_status = http_status @http_body = http_body @http_headers = http_headers @code = code super(@message) end |