def check_error(out, *ex_clz_list):
try:<EOL><INDENT>raise_if_err(out)<EOL><DEDENT>except ex_clz_list:<EOL><INDENT>raise<EOL><DEDENT>except StoropsException:<EOL><INDENT>pass<EOL><DEDENT>return out<EOL>
check whether this cli output contains the specified exception

    :param out: output of naviseccli
    :param ex_clz_list: exception class to check
    :return: nothing, raise `ex_clz` if match