diff options
author | Michi Henning <michi@zeroc.com> | 2007-10-18 19:37:48 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-10-18 19:37:48 +1000 |
commit | f9cda6ccd07f961ddb97e61a764d81c62add6ef5 (patch) | |
tree | 93c518180fd9570e52a0a6f2d178f8443d8e75a0 /cpp/src/Ice/Exception.cpp | |
parent | Fix to previous fix. (diff) | |
download | ice-f9cda6ccd07f961ddb97e61a764d81c62add6ef5.tar.bz2 ice-f9cda6ccd07f961ddb97e61a764d81c62add6ef5.tar.xz ice-f9cda6ccd07f961ddb97e61a764d81c62add6ef5.zip |
UnexpectedObjectException change merged from C# and Java.
Diffstat (limited to 'cpp/src/Ice/Exception.cpp')
-rw-r--r-- | cpp/src/Ice/Exception.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp index 84a78413c15..2510db8cffa 100644 --- a/cpp/src/Ice/Exception.cpp +++ b/cpp/src/Ice/Exception.cpp @@ -18,6 +18,25 @@ using namespace std; using namespace Ice; using namespace IceInternal; +namespace IceInternal +{ + +namespace Ex +{ + +void +throwUOE(const string& expectedType, const string& actualType) +{ + throw Ice::UnexpectedObjectException(__FILE__, __LINE__, + "expected element of type `" + expectedType + "' but received '" + actualType, + actualType, expectedType); +} + +} + +} + + bool Ice::UserException::__usesClasses() const { |