Exception: Afterpay::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- Afterpay::BaseError
- Defined in:
- lib/afterpay/errors.rb
Direct Known Subclasses
BadRequestError, ConflictError, GatewayTimeoutError, GoneError, InternalServerError, MethodNotAllowedError, NotAcceptableError, NotFoundError, PaymentRequiredError, PreconditionFailedError, RequestTimeoutError, ServiceUnavailableError, TooManyRequestsError, UnathorizedError, UnprocessableEntityError
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ BaseError
constructor
A new instance of BaseError.
Constructor Details
#initialize(error_code) ⇒ BaseError
Returns a new instance of BaseError.
7 8 9 10 |
# File 'lib/afterpay/errors.rb', line 7 def initialize(error_code) super @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
5 6 7 |
# File 'lib/afterpay/errors.rb', line 5 def error_code @error_code end |