diff options
author | 2017-06-26 17:20:00 +0200 | |
---|---|---|
committer | 2017-06-26 17:20:00 +0200 | |
commit | 814f3d0ad4ede25acb07b7b07b9ac9910538a53c (patch) | |
tree | c6d042e4c7355681d428c214bc4fdee67d7669d3 | |
parent | define needed_vars array as a global variable (diff) | |
download | java-config-814f3d0ad4ede25acb07b7b07b9ac9910538a53c.tar.gz java-config-814f3d0ad4ede25acb07b7b07b9ac9910538a53c.tar.bz2 java-config-814f3d0ad4ede25acb07b7b07b9ac9910538a53c.zip |
reformat documentation
-rw-r--r-- | src/java_config_2/Errors.py | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/src/java_config_2/Errors.py b/src/java_config_2/Errors.py index a6ec494..71521dc 100644 --- a/src/java_config_2/Errors.py +++ b/src/java_config_2/Errors.py @@ -2,27 +2,23 @@ # Copyright 2004-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 + class EnvironmentUndefinedError(Exception): - """ - Environment Variable is undefined! - """ + """The environment variable is undefined.""" + class InvalidConfigError(Exception): - """ - Invalid Configuration File - """ + """The configuration file is invalid.""" def __init__(self, file): self.file = file + class InvalidVMError(Exception): - """ - Specified Virtual Machine does not exist or is invalid - """ + """The virtual machine does not exist or is invalid.""" + class ProviderUnavailableError(Exception): - """ - No provider is available for the specified Virtual. - """ + """No provider is available for the specified virtual.""" def __init__( self, virtual, vms, packages ): self._virtual = virtual @@ -39,22 +35,20 @@ class ProviderUnavailableError(Exception): return self._vms def __str__(self): - return """No provider is available for """ + self._virtual + """ - Please check your environment.""" + return """No provider available for %s +Please check your your environment""" % (self._virtual) + class PermissionError(Exception): - """ - The permission on the file are wrong or you are not a privileged user - """ + """File permissions are wrong or you are not a privileged user.""" + class UnexistingPackageError(Exception): - """ - Thrown when a function is called to do something on a package that does not exist - """ + """Package does not exist.""" def __init__(self, package): self.package = package def __str__(self): return "Package %s was not found!" % self.package -# vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap: +# vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap:
\ No newline at end of file |