Source code for cobbler.cexceptions

"""
Custom exceptions for Cobbler
"""

from builtins import Exception


[docs]class CobblerException(Exception): def __init__(self, value, *args): self.value = value % args # this is a hack to work around some odd exception handling # in older pythons self.from_cobbler = 1 def __str__(self): return repr(self.value)
[docs]class CX(CobblerException): pass
[docs]class FileNotFoundException(CobblerException): pass
[docs]class NotImplementedException(CobblerException): pass