Exception: KXI::Exceptions::ConfigurationException
- Inherits:
-
Exception
- Object
- Exception
- KXI::Exceptions::ConfigurationException
- Defined in:
- lib/kxi/exceptions/configuration_exception.rb
Overview
Raised on error during configuration file reading
Instance Method Summary collapse
-
#error_message ⇒ string
Gets the message of error.
-
#file ⇒ string
Gets the path of the configuration file.
-
#initialize(file, path, msg = nil) ⇒ ConfigurationException
constructor
Instantiates the ConfigurationException class.
-
#path ⇒ string
Gets the path of the configuration parameter.
Constructor Details
#initialize(file, path, msg = nil) ⇒ ConfigurationException
Instantiates the KXI::Exceptions::ConfigurationException class
29 30 31 32 33 34 |
# File 'lib/kxi/exceptions/configuration_exception.rb', line 29 def initialize(file, path, msg = nil) super("Invalid configuration <#{path}> in file '#{file}'!#{msg != nil ? ": #{msg}" : ''}") @file = file @path = path @msg = msg end |
Instance Method Details
#error_message ⇒ string
Gets the message of error
21 22 23 |
# File 'lib/kxi/exceptions/configuration_exception.rb', line 21 def @msg end |
#file ⇒ string
Gets the path of the configuration file
9 10 11 |
# File 'lib/kxi/exceptions/configuration_exception.rb', line 9 def file @file end |
#path ⇒ string
Gets the path of the configuration parameter
15 16 17 |
# File 'lib/kxi/exceptions/configuration_exception.rb', line 15 def path @path end |