Exception: Pocketknife::Error::NodeError

Inherits:
Pocketknife::Error 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.

Defined Under Namespace

Classes: ExecutionError, NoSuchNode, NotInstalling, RsyncError, UnsupportedInstallationPlatform

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.



29
30
31
32
# File 'lib/pocketknife/errors.rb', line 29

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

Instance Attribute Details

#nodeString

Returns The name of the node.

Returns:

  • (String)

    The name of the node.



23
24
25
# File 'lib/pocketknife/errors.rb', line 23

def node
  @node
end