test_ExceptionBaseWithNestedException

Summary

Status:

✅ Passed

Duration:

00:00:00.002

Testsuite:

ExceptionHandling

Standard Output

--------------------------------- Captured Log ---------------------------------

--------------------------------- Captured Out ---------------------------------

Standard Error

--------------------------------- Captured Err ---------------------------------
#x1B[91m[FATAL] A known but unhandled exception reached the topmost exception handler!#x1B[39m
  #x1B[93mException type:#x1B[39m       #x1B[31mpyTooling.Exceptions.ExceptionBase#x1B[39m
  #x1B[93mException message:#x1B[39m    #x1B[91mBase exception#x1B[39m
  #x1B[93mCaused in:#x1B[39m            Run(...) in file '/Users/runner/work/pyTooling/pyTooling/tests/unit/TerminalUI/TerminalBase.py' at line 297			
    #x1B[33mCaused by ex. type:#x1B[39m #x1B[31mFileNotFoundError#x1B[39m
    #x1B[33mCaused by message:#x1B[39m  #x1B[91mFile doesn't exist.#x1B[39m				
  #x1B[91m--------------------------------------------------------------------------------#x1B[39m
  File "/Users/runner/work/pyTooling/pyTooling/tests/unit/TerminalUI/TerminalBase.py", line 301, in test_ExceptionBaseWithNestedException
    app.Run()
    ~~~~~~~^^
  File "/Users/runner/work/pyTooling/pyTooling/tests/unit/TerminalUI/TerminalBase.py", line 297, in Run
    raise ExceptionBase("Base exception") from FileNotFoundError("File doesn't exist.")
  #x1B[91m--------------------------------------------------------------------------------#x1B[39m