blob: 7006a3481d3ad1e1f3662437c33b2c99ea07de98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#
# partErrors.py: partitioning error exceptions
#
# Matt Wilson <msw@redhat.com>
# Jeremy Katz <katzj@redhat.com>
# Mike Fulbright <msf@redhat.com>
#
# Copyright 2002 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(Exception):
"""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(Exception):
"""A warning which may be ignored and still complete the installation."""
def __init__ (self, value):
self.value = value
def __str__ (self):
return self.value
class LabelError(Exception):
"""The device could not be labeled."""
def __init__(self, value):
self.value = value
def __str__(self):
return self.value
|