class CbuildException(Exception):
    def __init__(self, msg, extra = None):
        super().__init__(msg)
        self.extra = extra

class TracebackException(Exception):
    pass

class PackageException(Exception):
    def __init__(self, msg, end, pkg, broken = False, bt = True):
        super().__init__(msg)
        self.end = end
        self.pkg = pkg
        self.broken = broken
        self.bt = bt
