def decodeRPCErrorMsg(e):
found = re.search(<EOL>(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>),<EOL>str(e),<EOL>flags=re.M)<EOL>if found:<EOL><INDENT>return found.group(<NUM_LIT:2>).strip()<EOL><DEDENT>else:<EOL><INDENT>return str(e)<EOL><DEDENT>
Helper function to decode the raised Exception and give it a
        python Exception class