from contextlib import redirect_stdout
from traceback import format_exc
from pprint import pformat
from sys import exit, maxsize
from os import path
from time import strftime
import platform
def _cactus_class_method_exception_handle(function):
"""
This function provides a general wrapper for
handling errors with the Cactus engine. Example
usage:
@_cactus_class_method_exception_handle
def my_class_method(self, args):
code
"""
def wrapper(self, *args, **kwargs):