deltakit.explorer.Logging.error#

static Logging.error(ex: Exception, uid: str)#

Use this call for Exception logging. uid obtained from info_and_generate_uid() is required:

uid = Logging.info_and_generate_uid(locals())
...
try:
    # raises here
except Exception as e:
    Logging.error(e, uid)
Parameters:
  • ex (Exception) – exception object from except Exception as ex:.

  • uid (str) – unique string, result of info_and_generate_uid()