diff options
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); + } + +} |