Lines Matching full:exception
15 class ParserException(Exception):
20 class SPDXException(Exception):
62 exception = None
71 elif l.startswith('SPDX-Exception-Identifier:'):
72 exception = l.split(':')[1].strip().upper()
73 spdx.exceptions[exception] = []
78 … raise SPDXException(None, 'Exception %s missing license %s' %(exception, lic))
79 spdx.exceptions[exception].append(lic)
82 if exception:
83 if not len(spdx.exceptions[exception]):
84 … raise SPDXException(el, 'Exception %s is missing SPDX-Licenses' %exception)
129 # Validate License and Exception IDs
138 raise ParserException(tok, 'Invalid Exception ID')
140 raise ParserException(tok, 'Exception not valid for license %s' %self.lastid)
368 except Exception as ex:
378 except Exception as ex:
411 sys.stderr.write('Exception files: %12d\n' %spdx.exception_files)
413 sys.stderr.write('Exception IDs %12d\n' %len(spdx.exceptions))
453 except Exception as ex: