summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/LocalExceptionWrapper.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-06-27 10:31:41 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-06-27 10:31:41 +0200
commita4f93259dc3494d98addf38e69b87eb557d432b3 (patch)
treed2b78bb5cea24e33dc1b46be22dba6167e96c9ed /java/src/IceInternal/LocalExceptionWrapper.java
parentFix for ICE-5515 (ice_staticId on proxies) in Java, C#, Python, Ruby and PHP ... (diff)
downloadice-a4f93259dc3494d98addf38e69b87eb557d432b3.tar.bz2
ice-a4f93259dc3494d98addf38e69b87eb557d432b3.tar.xz
ice-a4f93259dc3494d98addf38e69b87eb557d432b3.zip
Better collocation optimization, fix for ICE-5489, ICE-5484
Diffstat (limited to 'java/src/IceInternal/LocalExceptionWrapper.java')
-rw-r--r--java/src/IceInternal/LocalExceptionWrapper.java71
1 files changed, 0 insertions, 71 deletions
diff --git a/java/src/IceInternal/LocalExceptionWrapper.java b/java/src/IceInternal/LocalExceptionWrapper.java
deleted file mode 100644
index 868781ee8a3..00000000000
--- a/java/src/IceInternal/LocalExceptionWrapper.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2014 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;
- }
-
- public static void
- throwWrapper(java.lang.Throwable ex) throws LocalExceptionWrapper
- {
- if(ex instanceof Ice.UserException)
- {
- throw new LocalExceptionWrapper(new Ice.UnknownUserException(((Ice.UserException)ex).ice_name()), false);
- }
- if(ex instanceof Ice.LocalException)
- {
- if(ex instanceof Ice.UnknownException ||
- ex instanceof Ice.ObjectNotExistException ||
- ex instanceof Ice.OperationNotExistException ||
- ex instanceof Ice.FacetNotExistException)
- {
- throw new LocalExceptionWrapper((Ice.LocalException)ex, false);
- }
- throw new LocalExceptionWrapper(new Ice.UnknownLocalException(((Ice.LocalException)ex).ice_name(), ex),
- false);
- }
- throw new LocalExceptionWrapper(new Ice.UnknownException(Ex.toString(ex), ex), false);
- }
-
- private Ice.LocalException _ex;
- private boolean _retry;
-}