libICEpost.src.base.Functions.runtimeWarning
@author: F. Ramognino <federico.ramognino@polimi.it> Last update: 12/06/2023
Functions for warnings and error messages.
Classes
Functions
|
|
|
Print the current call-stack. If an error was raised, |
|
|
|
Print a runtime warning message (Msg) and the call-stack. |
|
Print a runtime error message (Msg) and the call-stack. |
|
Module Contents
- class libICEpost.src.base.Functions.runtimeWarning.bcolors[source]
- HEADER = '\x1b[95m'
- OKBLUE = '\x1b[94m'
- OKCYAN = '\x1b[96m'
- OKGREEN = '\x1b[92m'
- WARNING = '\x1b[93m'
- FAIL = '\x1b[91m'
- ENDC = '\x1b[0m'
- BOLD = '\x1b[1m'
- UNDERLINE = '\x1b[4m'
- libICEpost.src.base.Functions.runtimeWarning.printStack(e=None)[source]
Print the current call-stack. If an error was raised, print the traceback with the error message.
- libICEpost.src.base.Functions.runtimeWarning.baseRuntimeWarning(WarningMSG, Msg, verbosityLevel=1, stack=True)[source]
- libICEpost.src.base.Functions.runtimeWarning.runtimeWarning(Msg, verbosityLevel=1, stack=True)[source]
Print a runtime warning message (Msg) and the call-stack.