def throw_exception(func):
"""Description: Function decorator that catch all exception raised by target function,
please DO NOT use this function directly
@parameter: "func": The function to be decorated
@return:None
@OHOSException: The first digit of the code represents the compilation stage,
'1', '2', '3', '4' corresponds to preloader, loader, gn, ninja stages respectively