summaryrefslogtreecommitdiffstats
path: root/partErrors.py
diff options
context:
space:
mode:
Diffstat (limited to 'partErrors.py')
-rw-r--r--partErrors.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/partErrors.py b/partErrors.py
new file mode 100644
index 000000000..ed05bda35
--- /dev/null
+++ b/partErrors.py
@@ -0,0 +1,35 @@
+#
+# partErrors.py: partitioning error exceptions
+#
+# Matt Wilson <msw@redhat.com>
+# Jeremy Katz <katzj@redhat.com>
+# Mike Fulbright <msf@redhat.com>
+#
+# Copyright 2001 Red Hat, Inc.
+#
+# This software may be freely redistributed under the terms of the GNU
+# library public license.
+#
+# You should have received a copy of the GNU Library Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+"""Exceptions for use in partitioning."""
+
+
+class PartitioningError:
+ """A critical error which must be resolved to continue the installation."""
+ def __init__ (self, value):
+ self.value = value
+
+ def __str__ (self):
+ return self.value
+
+class PartitioningWarning:
+ """A warning which may be ignored and still complete the installation."""
+ def __init__ (self, value):
+ self.value = value
+
+ def __str__ (self):
+ return self.value
+