Exception: Plaid::PlaidError
- Inherits:
-
StandardError
- Object
- StandardError
- Plaid::PlaidError
- Defined in:
- lib/plaid/errors.rb
Overview
Internal: Base class for Plaid errors
Direct Known Subclasses
BadRequestError, NotFoundError, RequestFailedError, ServerError, UnauthorizedError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#resolve ⇒ Object
readonly
Returns the value of attribute resolve.
Instance Method Summary collapse
-
#initialize(code, message, resolve) ⇒ PlaidError
constructor
Internal: Initialize a error with proper attributes.
Constructor Details
#initialize(code, message, resolve) ⇒ PlaidError
Internal: Initialize a error with proper attributes.
code - The Integer code (e.g. 1501). message - The String message, describing the error. resolve - The String description how to fix the error.
14 15 16 17 18 19 |
# File 'lib/plaid/errors.rb', line 14 def initialize(code, , resolve) @code = code @resolve = resolve super "Code #{@code}: #{}. #{resolve}" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/plaid/errors.rb', line 7 def code @code end |
#resolve ⇒ Object (readonly)
Returns the value of attribute resolve.
7 8 9 |
# File 'lib/plaid/errors.rb', line 7 def resolve @resolve end |