Exception: ScreenshotAPI::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- ScreenshotAPI::APIError
- Defined in:
- lib/screenshotapi/errors.rb
Direct Known Subclasses
AuthenticationError, InsufficientCreditsError, InvalidAPIKeyError, NetworkError, ScreenshotFailedError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, code:) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, status:, code:) ⇒ APIError
Returns a new instance of APIError.
5 6 7 8 9 |
# File 'lib/screenshotapi/errors.rb', line 5 def initialize(, status:, code:) super() @status = status @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/screenshotapi/errors.rb', line 3 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/screenshotapi/errors.rb', line 3 def status @status end |