printError

Module Contents

Functions

printErr(err, level=0)

Error logging function and aborts the program for level > 2

printError.printErr(err, level=0)

Error logging function and aborts the program for level > 2

Parameters
  • err (BaseException or str) – An error or a string

  • level (int, optional) – Level of error, defaults to 0