0321 from macmini
This commit is contained in:
16
3rdparty/plugins/org_openscopeproject_InteractiveHtmlBom/errors.py
vendored
Normal file
16
3rdparty/plugins/org_openscopeproject_InteractiveHtmlBom/errors.py
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
import sys
|
||||
|
||||
|
||||
class ExitCodes():
|
||||
ERROR_PARSE = 3
|
||||
ERROR_FILE_NOT_FOUND = 4
|
||||
ERROR_NO_DISPLAY = 5
|
||||
|
||||
|
||||
class ParsingException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def exit_error(logger, code, err):
|
||||
logger.error(err)
|
||||
sys.exit(code)
|
Reference in New Issue
Block a user