Exception: LeapCli::ConfigError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/leap_cli/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, msg) ⇒ ConfigError

Returns a new instance of ConfigError.



5
6
7
8
# File 'lib/leap_cli/exceptions.rb', line 5

def initialize(node, msg)
  @node = node
  super(msg)
end

Instance Attribute Details

#nodeObject

Returns the value of attribute node.



4
5
6
# File 'lib/leap_cli/exceptions.rb', line 4

def node
  @node
end

Instance Method Details

#logObject



9
10
11
# File 'lib/leap_cli/exceptions.rb', line 9

def log
  Util.log(0, :error, "in node `#{@node.name}`: " + self.message)
end