Lines Matching full:exception
14 class ParserException(Exception):
19 class SPDXException(Exception):
46 exception = None
55 elif l.startswith('SPDX-Exception-Identifier:'):
56 exception = l.split(':')[1].strip().upper()
57 spdx.exceptions[exception] = []
62 … raise SPDXException(None, 'Exception %s missing license %s' %(exception, lic))
63 spdx.exceptions[exception].append(lic)
66 if exception:
67 if not len(spdx.exceptions[exception]):
68 … raise SPDXException(el, 'Exception %s is missing SPDX-Licenses' %exception)
99 # Validate License and Exception IDs
108 raise ParserException(tok, 'Invalid Exception ID')
110 raise ParserException(tok, 'Exception not valid for license %s' %self.lastid)
256 except Exception as ex:
282 sys.stderr.write('Exception files: %12d\n' %spdx.exception_files)
284 sys.stderr.write('Exception IDs %12d\n' %len(spdx.exceptions))
293 except Exception as ex: