blob: 24a0fa75c949ebfae935a290b34c21e7690dc2c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
module LeapCli
class ConfigError < StandardError
attr_accessor :node
def initialize(node, msg)
@node = node
super(msg)
end
def log
Util.log(0, :error, "in node `#{@node.name}`: " + self.message)
end
end
class FileMissing < StandardError
attr_accessor :path, :options
def initialize(path, options={})
@path = path
@options = options
end
def to_s
@path
end
end
class AssertionFailed < StandardError
attr_accessor :assertion
def initialize(assertion)
@assertion = assertion
end
def to_s
@assertion
end
end
end
|