class KXI::Exceptions::ConfigurationException
Raised on error during configuration file reading
Public Class Methods
new(file, path, msg = nil)
click to toggle source
Instantiates the {KXI::Exceptions::ConfigurationException} class @param [string] file Path of the configuration file @param [string] path Path of the configuration parameter @param [string,nil] msg Message of error
Calls superclass method
# 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
Public Instance Methods
error_message()
click to toggle source
Gets the message of error @return [string] Message of error
# File lib/kxi/exceptions/configuration_exception.rb, line 21 def error_message @msg end
file()
click to toggle source
Gets the path of the configuration file @return [string] Path of the configuration file
# File lib/kxi/exceptions/configuration_exception.rb, line 9 def file @file end
path()
click to toggle source
Gets the path of the configuration parameter @return [string] Path of the configuration parameter
# File lib/kxi/exceptions/configuration_exception.rb, line 15 def path @path end