Exception: TaboolaApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- TaboolaApi::Error
- Defined in:
- lib/taboola_api/error.rb
Direct Known Subclasses
ApiError, AuthenticationError, AuthorizationError, InvalidRequestError, RateLimitError
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = nil, status_code = nil, body = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, status_code = nil, body = nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 |
# File 'lib/taboola_api/error.rb', line 6 def initialize( = nil, status_code = nil, body = nil) @status_code = status_code @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/taboola_api/error.rb', line 4 def body @body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/taboola_api/error.rb', line 3 def status_code @status_code end |