Package pyanaconda :: Package storage :: Module errors
[hide private]
[frames] | no frames]

Source Code for Module pyanaconda.storage.errors

  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 -class LoopError(StorageError):
134 pass
135
136 -class BTRFSError(StorageError):
137 pass
138 139 # DeviceTree
140 -class DeviceTreeError(StorageError):
141 pass
142
143 -class DeviceNotFoundError(StorageError):
144 pass
145 146 # DeviceAction
147 -class DeviceActionError(StorageError):
148 pass
149 150 # partitioning
151 -class PartitioningError(StorageError):
152 pass
153
154 -class PartitioningWarning(StorageError):
155 pass
156 157 # udev
158 -class UdevError(StorageError):
159 pass
160 161 # fstab
162 -class UnrecognizedFSTabEntryError(StorageError):
163 pass
164
165 -class FSTabTypeMismatchError(StorageError):
166 pass
167 168 # dasd
169 -class DasdFormatError(StorageError):
170 pass
171 172 # size
173 -class SizeParamsError(StorageError):
174 pass
175
176 -class SizeNotPositiveError(StorageError):
177 pass
178
179 -class SizePlacesError(StorageError):
180 pass
181