Exception: Pocketknife::NodeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pocketknife/errors.rb

Overview

NodeError

An error with a Node. This is meant to be subclassed by a more specific error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, node) ⇒ NodeError

Instantiate a new exception.

Parameters:

  • message (String)

    The message to display.

  • node (String)

    The name of the unknown node.



13
14
15
16
# File 'lib/pocketknife/errors.rb', line 13

def initialize(message, node)
  self.node = node
  super(message)
end

Instance Attribute Details

#nodeObject

The name of the node.



7
8
9
# File 'lib/pocketknife/errors.rb', line 7

def node
  @node
end