summaryrefslogtreecommitdiff
path: root/distutils2/errors.py
diff options
context:
space:
mode:
authorArc Riley <arcriley@gmail.com>2011-03-13 00:12:23 -0500
committerArc Riley <arcriley@gmail.com>2011-03-13 00:12:23 -0500
commitefa667603bc41168dc547563fffef464b728adfa (patch)
tree6b3f76ba3d107c984335253b3d42d9ab65cb7748 /distutils2/errors.py
parentf3f78c2aca495aed87bc416e5f20134b9d0fc351 (diff)
parente2d2d3d18380338920819d2bd0524f6629b1874b (diff)
downloaddisutils2-efa667603bc41168dc547563fffef464b728adfa.tar.gz
Branch merge to trunk
Diffstat (limited to 'distutils2/errors.py')
-rw-r--r--distutils2/errors.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/distutils2/errors.py b/distutils2/errors.py
index a080898..bbf5497 100644
--- a/distutils2/errors.py
+++ b/distutils2/errors.py
@@ -9,7 +9,6 @@ This module is safe to use in "from ... import *" mode; it only exports
symbols whose names start with "Distutils" and end with "Error"."""
-
class DistutilsError(Exception):
"""The root of all Distutils evil."""
@@ -110,6 +109,10 @@ class UnknownFileError(CCompilerError):
"""Attempt to process an unknown file type."""
+class MetadataMissingError(DistutilsError):
+ """A required metadata is missing"""
+
+
class MetadataConflictError(DistutilsError):
"""Attempt to read or write metadata fields that are conflictual."""
@@ -131,3 +134,11 @@ class HugeMajorVersionNumError(IrrationalVersionError):
This guard can be disabled by setting that option False.
"""
pass
+
+
+class InstallationException(Exception):
+ """Base exception for installation scripts"""
+
+
+class InstallationConflict(InstallationException):
+ """Raised when a conflict is detected"""