format_exception
- omni.kit.undo.format_exception(e: Exception, remove_n_last_frames: int = 2) str
Pretty format exception. Include exception info, call stack of exception itself and this function callstack. This function is meant to be used in ``except`` clause.
- Parameters
e – Exception.
remove_n_last_frames – Number of last call stack frames to be removed. Usually this function and few above are meaningless to the user.
- Returns
Formatted string.