Lines Matching refs:Exception
15 class ParserException(Exception):
20 class SPDXException(Exception):
71 elif l.startswith('SPDX-Exception-Identifier:'):
78 raise SPDXException(None, 'Exception %s missing license %s' %(exception, lic))
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)
362 except Exception as ex:
372 except Exception as ex:
405 sys.stderr.write('Exception files: %12d\n' %spdx.exception_files)
407 sys.stderr.write('Exception IDs %12d\n' %len(spdx.exceptions))
444 except Exception as ex: