1 class FDroidException(Exception):
3 def __init__(self, value=None, detail=None):
7 def shortened_detail(self):
8 if len(self.detail) < 16000:
10 return '[...]\n' + self.detail[-16000:]
12 def get_wikitext(self):
13 ret = repr(self.value) + "\n"
16 ret += "<pre>\n" + self.shortened_detail() + "</pre>\n"
22 ret += "\n==== detail begin ====\n%s\n==== detail end ====" % self.detail.strip()
26 class MetaDataException(Exception):
28 def __init__(self, value):
35 class VCSException(FDroidException):
39 class BuildException(FDroidException):
43 class VerificationException(FDroidException):