current_source = klass.new
@enabled_sources << current_source
else
- raise StartSourceException
+ raise Exceptions::StartSourceError
end
end
end
@config["enabled_sources"].uniq!
@config.save_config
else
- raise EnableSourceException
+ raise Exceptions::EnableSourceError
end
else
- raise UnknownSourceException
+ raise Exceptions::UnknownSourceError
end
end
@config["enabled_sources"].delete(klass.name)
@config.save_config
else
- raise DisableSourceException
+ raise Exceptions::DisableSourceError
end
else
- raise UnknownSourceException
+ raise Exceptions::UnknownSourceError
end
end
klass.reset
disable(source_name)
else
- raise ResetSourceException
+ raise Exceptions::ResetSourceError
end
else
- raise UnknownSourceException
+ raise Exceptions::UnknownSourceError
end
end
lock = true if source.class.name == "arguments"
end
rescue
- raise SourceConfigurationException
+ raise Exceptions::SourceConfigurationError
end
end
track