Exception: Transfeera::Errors::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Transfeera::Errors::ResponseError
- Defined in:
- lib/transfeera/errors/response_error.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(error:, error_code:, message:, status_code:) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(error:, error_code:, message:, status_code:) ⇒ ResponseError
Returns a new instance of ResponseError.
6 7 8 9 10 11 12 13 |
# File 'lib/transfeera/errors/response_error.rb', line 6 def initialize(error:, error_code:, message:, status_code:) super @error = error @error_code = error_code = @status_code = status_code end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
4 5 6 |
# File 'lib/transfeera/errors/response_error.rb', line 4 def error @error end |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
4 5 6 |
# File 'lib/transfeera/errors/response_error.rb', line 4 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/transfeera/errors/response_error.rb', line 4 def end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
4 5 6 |
# File 'lib/transfeera/errors/response_error.rb', line 4 def status_code @status_code end |