diff options
author | Michi Henning <michi@zeroc.com> | 2007-10-18 16:18:17 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-10-18 16:18:17 +1000 |
commit | 5830d404e15cd788f4088e897ef71a4dca57a217 (patch) | |
tree | 1cf1f972420b6db655b5740a5aedda85ecce6996 /java/src/IceInternal/Ex.java | |
parent | Changed the way the patchers work for the expected type. (diff) | |
download | ice-5830d404e15cd788f4088e897ef71a4dca57a217.tar.bz2 ice-5830d404e15cd788f4088e897ef71a4dca57a217.tar.xz ice-5830d404e15cd788f4088e897ef71a4dca57a217.zip |
Changed the UnexpectedObjectException is thrown to match C#.
Diffstat (limited to 'java/src/IceInternal/Ex.java')
-rw-r--r-- | java/src/IceInternal/Ex.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/java/src/IceInternal/Ex.java b/java/src/IceInternal/Ex.java new file mode 100644 index 00000000000..f82a37bd844 --- /dev/null +++ b/java/src/IceInternal/Ex.java @@ -0,0 +1,21 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +package IceInternal; + +class Ex +{ + public static void throwUOE(String expectedType, String actualType) + { + throw new Ice.UnexpectedObjectException( + "expected element of type `" + expectedType + "' but received '" + actualType, + actualType, expectedType); + } + +} |