Exception: Pione::Global::InvalidConfigFile

Inherits:
GlobalError
  • Object
show all
Defined in:
lib/pione/global/global-exception.rb

Overview

This exception class is raised when configuration file is in invalid format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ InvalidConfigFile

Returns a new instance of InvalidConfigFile.



21
22
23
# File 'lib/pione/global/global-exception.rb', line 21

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

config file path



19
20
21
# File 'lib/pione/global/global-exception.rb', line 19

def path
  @path
end

Instance Method Details

#messageObject



25
26
27
# File 'lib/pione/global/global-exception.rb', line 25

def message
  "invalid format configuration file: %s" % @path
end