summaryrefslogtreecommitdiffstats
path: root/partErrors.py
blob: 14835a0d0db21cccd213344ce12619782b744848 (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
#
# 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:
    """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