libICEpost.src.base.Functions.runtimeWarning

@author: F. Ramognino <federico.ramognino@polimi.it> Last update: 12/06/2023

Functions for warnings and error messages.

Classes

bcolors

Functions

enf(msg, style)

printStack([e])

Print the current call-stack. If an error was raised,

baseRuntimeWarning(WarningMSG, Msg[, verbosityLevel, ...])

runtimeWarning(Msg[, verbosityLevel, stack])

Print a runtime warning message (Msg) and the call-stack.

runtimeError(Msg[, verbosityLevel, stack])

Print a runtime error message (Msg) and the call-stack.

helpOnFail(func)

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.enf(msg, style)[source]
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.

libICEpost.src.base.Functions.runtimeWarning.runtimeError(Msg, verbosityLevel=1, stack=True)[source]

Print a runtime error message (Msg) and the call-stack.

libICEpost.src.base.Functions.runtimeWarning.helpOnFail(func)[source]