Exception: PrintNode::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- PrintNode::APIError
- Defined in:
- lib/printnode/api_exception.rb
Overview
An error class for HTTP errors
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ APIError
constructor
Initializes an object or message to use in the error.
Constructor Details
#initialize(object) ⇒ APIError
Initializes an object or message to use in the error.
Paramters:
- object
-
object to show error messages about.
12 13 14 |
# File 'lib/printnode/api_exception.rb', line 12 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
6 7 8 |
# File 'lib/printnode/api_exception.rb', line 6 def object @object end |