summaryrefslogtreecommitdiff
path: root/cpp/src/slice2vb/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2vb/Gen.cpp')
-rwxr-xr-xcpp/src/slice2vb/Gen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/slice2vb/Gen.cpp b/cpp/src/slice2vb/Gen.cpp
index cba61b713cd..f7e6c7303d1 100755
--- a/cpp/src/slice2vb/Gen.cpp
+++ b/cpp/src/slice2vb/Gen.cpp
@@ -2189,8 +2189,7 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p)
_out << nl << "End If";
_out << nl << "If Not TypeOf other__ Is " << name << " Then";
_out.inc();
- _out << nl << "Throw New _System.ArgumentException(\"expected argument of type `" << p->name()
- << "'\", \"other__\")";
+ _out << nl << "Return False";
_out.dec();
_out << nl << "End If";
for(q = dataMembers.begin(); q != dataMembers.end(); ++q)