/[smeserver]/cdrom.image/sme9/updates/storage/errors.py
ViewVC logotype

Annotation of /cdrom.image/sme9/updates/storage/errors.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download) (as text)
Sun Dec 22 04:27:51 2013 UTC (10 years, 10 months ago) by wellsi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-python
FILE REMOVED
anaconda updates now handled via patches

1 charliebrady 1.1 # errors.py
2     # Exception classes for anaconda's storage configuration module.
3     #
4     # Copyright (C) 2009 Red Hat, Inc.
5     #
6     # This copyrighted material is made available to anyone wishing to use,
7     # modify, copy, or redistribute it subject to the terms and conditions of
8     # the GNU General Public License v.2, or (at your option) any later version.
9     # This program is distributed in the hope that it will be useful, but WITHOUT
10     # ANY WARRANTY expressed or implied, including the implied warranties of
11     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
12     # Public License for more details. You should have received a copy of the
13     # GNU General Public License along with this program; if not, write to the
14     # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15     # 02110-1301, USA. Any Red Hat trademarks that are incorporated in the
16     # source code or documentation are not subject to the GNU General Public
17     # License and may only be used or replicated with the express permission of
18     # Red Hat, Inc.
19     #
20     # Red Hat Author(s): Dave Lehman <dlehman@redhat.com>
21     #
22    
23     class StorageError(Exception):
24     def __init__(self, *args, **kwargs):
25     self.hardware_fault = kwargs.pop("hardware_fault", False)
26     super(StorageError, self).__init__(*args, **kwargs)
27    
28     # Device
29     class DeviceError(StorageError):
30     pass
31    
32     class DeviceCreateError(DeviceError):
33     pass
34    
35     class DeviceDestroyError(DeviceError):
36     pass
37    
38     class DeviceResizeError(DeviceError):
39     pass
40    
41     class DeviceSetupError(DeviceError):
42     pass
43    
44     class DeviceTeardownError(DeviceError):
45     pass
46    
47     class DeviceUserDeniedFormatError(DeviceError):
48     pass
49    
50     # DeviceFormat
51     class DeviceFormatError(StorageError):
52     pass
53    
54     class FormatCreateError(DeviceFormatError):
55     pass
56    
57     class FormatDestroyError(DeviceFormatError):
58     pass
59    
60     class FormatSetupError(DeviceFormatError):
61     pass
62    
63     class FormatTeardownError(DeviceFormatError):
64     pass
65    
66     class DMRaidMemberError(DeviceFormatError):
67     pass
68    
69     class MultipathMemberError(DeviceFormatError):
70     pass
71    
72     class FSError(DeviceFormatError):
73     pass
74    
75     class FSResizeError(FSError):
76     pass
77    
78     class FSMigrateError(FSError):
79     pass
80    
81     class LUKSError(DeviceFormatError):
82     pass
83    
84     class MDMemberError(DeviceFormatError):
85     pass
86    
87     class PhysicalVolumeError(DeviceFormatError):
88     pass
89    
90     class SinglePhysicalVolumeError(DeviceFormatError):
91     pass
92    
93     class SwapSpaceError(DeviceFormatError):
94     pass
95    
96     class DiskLabelError(DeviceFormatError):
97     pass
98    
99     class InvalidDiskLabelError(DiskLabelError):
100     pass
101    
102     class DiskLabelCommitError(DiskLabelError):
103     pass
104    
105     # devicelibs
106     class SwapError(StorageError):
107     pass
108    
109     class SuspendError(SwapError):
110     pass
111    
112     class OldSwapError(SwapError):
113     pass
114    
115     class UnknownSwapError(SwapError):
116     pass
117    
118     class MDRaidError(StorageError):
119     pass
120    
121     class DMError(StorageError):
122     pass
123    
124     class LVMError(StorageError):
125     pass
126    
127     class CryptoError(StorageError):
128     pass
129    
130     class MPathError(StorageError):
131     pass
132    
133     # DeviceTree
134     class DeviceTreeError(StorageError):
135     pass
136    
137     class DeviceNotFoundError(StorageError):
138     pass
139    
140     # DeviceAction
141     class DeviceActionError(StorageError):
142     pass
143    
144     # partitioning
145     class PartitioningError(StorageError):
146     pass
147    
148     class PartitioningWarning(StorageError):
149     pass
150    
151     # udev
152     class UdevError(StorageError):
153     pass
154    
155     # fstab
156     class UnrecognizedFSTabEntryError(StorageError):
157     pass
158    
159     # dasd
160     class DasdFormatError(StorageError):
161     pass

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed