Returns True if we can hide the error traceback in the warnings messages

def should_hide_traceback(e):
    """ Returns True if we can hide the error traceback in the warnings messages """
    if type(e) in {WrongTypeCreatedError, CascadeError, TypeInformationRequiredError}:
        return True
    elif type(e).__name__ in {'InvalidAttributeNameForConstructorError', 'MissingMandatoryAttributeFiles'}:
        return True
    else:
        return False