Exception: Uttk::Logger::DuplicatedPath

Inherits:
Exception show all
Defined in:
lib/uttk/logger.rb

Instance Method Summary collapse

Methods inherited from Exception

#to_uttk_log

Constructor Details

#initialize(backend_path, path) ⇒ DuplicatedPath

Returns a new instance of DuplicatedPath.



30
31
32
33
# File 'lib/uttk/logger.rb', line 30

def initialize ( backend_path, path )
  @backend_path = backend_path
  @path = path
end

Instance Method Details

#to_sObject



34
35
36
37
38
# File 'lib/uttk/logger.rb', line 34

def to_s
  path, bpath = @path.to_s, @backend_path.to_s
  path += ' vs ' + bpath if path != bpath
  "The path notification flow contains two leaves at the same path (#{path})"
end