libICEpost.src.base.Functions.runtimeWarning ============================================ .. py:module:: libICEpost.src.base.Functions.runtimeWarning .. autoapi-nested-parse:: @author: F. Ramognino Last update: 12/06/2023 Functions for warnings and error messages. Classes ------- .. autoapisummary:: libICEpost.src.base.Functions.runtimeWarning.bcolors Functions --------- .. autoapisummary:: libICEpost.src.base.Functions.runtimeWarning.enf libICEpost.src.base.Functions.runtimeWarning.printStack libICEpost.src.base.Functions.runtimeWarning.baseRuntimeWarning libICEpost.src.base.Functions.runtimeWarning.runtimeWarning libICEpost.src.base.Functions.runtimeWarning.runtimeError libICEpost.src.base.Functions.runtimeWarning.helpOnFail Module Contents --------------- .. py:class:: bcolors .. py:attribute:: HEADER :value: '\x1b[95m' .. py:attribute:: OKBLUE :value: '\x1b[94m' .. py:attribute:: OKCYAN :value: '\x1b[96m' .. py:attribute:: OKGREEN :value: '\x1b[92m' .. py:attribute:: WARNING :value: '\x1b[93m' .. py:attribute:: FAIL :value: '\x1b[91m' .. py:attribute:: ENDC :value: '\x1b[0m' .. py:attribute:: BOLD :value: '\x1b[1m' .. py:attribute:: UNDERLINE :value: '\x1b[4m' .. py:function:: enf(msg, style) .. py:function:: printStack(e=None) Print the current call-stack. If an error was raised, print the traceback with the error message. .. py:function:: baseRuntimeWarning(WarningMSG, Msg, verbosityLevel=1, stack=True) .. py:function:: runtimeWarning(Msg, verbosityLevel=1, stack=True) Print a runtime warning message (Msg) and the call-stack. .. py:function:: runtimeError(Msg, verbosityLevel=1, stack=True) Print a runtime error message (Msg) and the call-stack. .. py:function:: helpOnFail(func)