Exception: Xendit::Errors
- Inherits:
-
StandardError
- Object
- StandardError
- Xendit::Errors
- Defined in:
- lib/xendit/errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(error_code, error_message, http_status) ⇒ Errors
constructor
A new instance of Errors.
Constructor Details
#initialize(error_code, error_message, http_status) ⇒ Errors
Returns a new instance of Errors.
5 6 7 8 9 10 |
# File 'lib/xendit/errors.rb', line 5 def initialize(error_code, , http_status) @error_code = error_code @error_message = @http_status = http_status super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
3 4 5 |
# File 'lib/xendit/errors.rb', line 3 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
3 4 5 |
# File 'lib/xendit/errors.rb', line 3 def @error_message end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
3 4 5 |
# File 'lib/xendit/errors.rb', line 3 def http_status @http_status end |