def METHOD_NAME(self, ctx, arg0, arg1):
    print("test_multi_exception({}, {})".format(arg0, arg1))
    if arg0 == "Xception":
        e = Xception()
        e.errorCode = 1001
        e.message = "This is an Xception"
        raise e
    elif arg0 == "Xception2":
        e = Xception2()
        e.errorCode = 2002
        e.struct_thing = Xtruct()
        e.struct_thing.string_thing = "This is an Xception2"
        e.struct_thing.byte_thing = 0
        e.struct_thing.i32_thing = 0
        e.struct_thing.i64_thing = 0
        raise e
    else:
        r = Xtruct()
        r.string_thing = arg1
        return r