diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-03-14 12:47:12 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-03-14 12:47:12 +0000 |
commit | 4ec329c60555de5562c72df0e2fc583d591bf84d (patch) | |
tree | 86eb4af9aac33fc6277bed19d8936c4ffdbcd2d5 /java/src/IceInternal/LocalExceptionWrapper.java | |
parent | Fixed http://www.zeroc.com/vbulletin/showthread.php?p=9533#post9533 (diff) | |
download | ice-4ec329c60555de5562c72df0e2fc583d591bf84d.tar.bz2 ice-4ec329c60555de5562c72df0e2fc583d591bf84d.tar.xz ice-4ec329c60555de5562c72df0e2fc583d591bf84d.zip |
Ported fix for bug 574.
Diffstat (limited to 'java/src/IceInternal/LocalExceptionWrapper.java')
-rw-r--r-- | java/src/IceInternal/LocalExceptionWrapper.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/java/src/IceInternal/LocalExceptionWrapper.java b/java/src/IceInternal/LocalExceptionWrapper.java new file mode 100644 index 00000000000..2d60f8d219a --- /dev/null +++ b/java/src/IceInternal/LocalExceptionWrapper.java @@ -0,0 +1,49 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2006 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; + +public class LocalExceptionWrapper extends Exception +{ + public + LocalExceptionWrapper(Ice.LocalException ex, boolean retry) + { + _ex = ex; + _retry = retry; + } + + public + LocalExceptionWrapper(IceInternal.LocalExceptionWrapper ex) + { + _ex = ex.get(); + _retry = ex._retry; + } + + public Ice.LocalException + get() + { + return _ex; + } + + // + // If true, always repeat the request. Don't take retry settings + // or "at-most-once" guarantees into account. + // + // If false, only repeat the request if the retry settings allow + // to do so, and if "at-most-once" does not need to be guaranteed. + // + public boolean + retry() + { + return _retry; + } + + private Ice.LocalException _ex; + private boolean _retry; +} |