@staticmethod
def type(cls, var):
    """
        Raise and exception of the type specified
        :param cls: Exception Class to be Raised
        :param var:
        :return:
        """
    from optimus.helpers.debug import get_var_name
    raise cls("'{var_name}' error".format(var_name=get_var_name(var),
        var_type=var))
