Exception: Paddle::ErrorGenerator
- Inherits:
-
StandardError
- Object
- StandardError
- Paddle::ErrorGenerator
- Defined in:
- lib/paddle/error_generator.rb
Direct Known Subclasses
Paddle::Errors::AuthenticationMissingError, Paddle::Errors::BadRequestError, Paddle::Errors::ConflictError, Paddle::Errors::EntityNotFoundError, Paddle::Errors::ForbiddenError, Paddle::Errors::InternalError, Paddle::Errors::NotImplementedError, Paddle::Errors::ServiceUnavailableError, Paddle::Errors::TooManyRequestsError
Instance Attribute Summary collapse
-
#http_status_code ⇒ Object
readonly
Returns the value of attribute http_status_code.
-
#paddle_error_code ⇒ Object
readonly
Returns the value of attribute paddle_error_code.
-
#paddle_error_message ⇒ Object
readonly
Returns the value of attribute paddle_error_message.
Instance Method Summary collapse
-
#initialize(response_body, http_status_code) ⇒ ErrorGenerator
constructor
A new instance of ErrorGenerator.
Constructor Details
#initialize(response_body, http_status_code) ⇒ ErrorGenerator
Returns a new instance of ErrorGenerator.
7 8 9 10 11 12 |
# File 'lib/paddle/error_generator.rb', line 7 def initialize(response_body, http_status_code) @response_body = response_body @http_status_code = http_status_code set_paddle_error_values super() end |
Instance Attribute Details
#http_status_code ⇒ Object (readonly)
Returns the value of attribute http_status_code.
3 4 5 |
# File 'lib/paddle/error_generator.rb', line 3 def http_status_code @http_status_code end |
#paddle_error_code ⇒ Object (readonly)
Returns the value of attribute paddle_error_code.
4 5 6 |
# File 'lib/paddle/error_generator.rb', line 4 def paddle_error_code @paddle_error_code end |
#paddle_error_message ⇒ Object (readonly)
Returns the value of attribute paddle_error_message.
5 6 7 |
# File 'lib/paddle/error_generator.rb', line 5 def @paddle_error_message end |