Exception: ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- ApiError
- Defined in:
- lib/treezor_connect/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = '', errors = {}, status = 0) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message = '', errors = {}, status = 0) ⇒ ApiError
6 7 8 9 10 11 |
# File 'lib/treezor_connect/errors.rb', line 6 def initialize( = '', errors = {}, status = 0) @errors = errors @status = status super() end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/treezor_connect/errors.rb', line 4 def errors @errors end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/treezor_connect/errors.rb', line 4 def status @status end |