Exception: Wajub::WajubError
- Inherits:
-
StandardError
- Object
- StandardError
- Wajub::WajubError
- Defined in:
- lib/wajub/errors.rb
Direct Known Subclasses
ApiConnectionError, AuthenticationError, InvalidRequestError, NotFoundError, PermissionError, RateLimitError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(message, code:, http_status:, errors: nil, raw: nil) ⇒ WajubError
constructor
A new instance of WajubError.
Constructor Details
#initialize(message, code:, http_status:, errors: nil, raw: nil) ⇒ WajubError
Returns a new instance of WajubError.
7 8 9 10 11 12 13 |
# File 'lib/wajub/errors.rb', line 7 def initialize(, code:, http_status:, errors: nil, raw: nil) super() @code = code @http_status = http_status @errors = errors @raw = raw end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/wajub/errors.rb', line 5 def code @code end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/wajub/errors.rb', line 5 def errors @errors end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
5 6 7 |
# File 'lib/wajub/errors.rb', line 5 def http_status @http_status end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
5 6 7 |
# File 'lib/wajub/errors.rb', line 5 def raw @raw end |