Exception: PrintNode::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/printnode/api_exception.rb

Overview

An error class for HTTP errors

Author:

  • Jake Torrance

  • PrintNode

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objectObject (readonly)

Returns the value of attribute object.



6
7
8
# File 'lib/printnode/api_exception.rb', line 6

def object
  @object
end