Revision 86a24969
b/htools/Ganeti/Errors.hs | ||
---|---|---|
67 | 67 |
, ("ProgrammerError", [excErrMsg]) |
68 | 68 |
, ("BlockDeviceError", [excErrMsg]) |
69 | 69 |
, ("ConfigurationError", [excErrMsg]) |
70 |
, ("ConfigVersionMismatch", [ ("expCode", [t| Int |])
|
|
71 |
, ("actCode", [t| Int |])])
|
|
70 |
, ("ConfigVersionMismatch", [ ("expVer", [t| Int |])
|
|
71 |
, ("actVer", [t| Int |])])
|
|
72 | 72 |
, ("ReservationError", [excErrMsg]) |
73 | 73 |
, ("RemoteError", [excErrMsg]) |
74 | 74 |
, ("SignatureError", [excErrMsg]) |
b/lib/errors.py | ||
---|---|---|
169 | 169 |
class OpPrereqError(GenericError): |
170 | 170 |
"""Prerequisites for the OpCode are not fulfilled. |
171 | 171 |
|
172 |
This exception will have either one or two arguments. For the |
|
173 |
two-argument construction, the second argument should be one of the |
|
172 |
This exception has two arguments: an error message, and one of the |
|
174 | 173 |
ECODE_* codes. |
175 | 174 |
|
176 | 175 |
""" |
Also available in: Unified diff