diff options
Diffstat (limited to 'java/src/Ice/AsyncResult.java')
-rw-r--r-- | java/src/Ice/AsyncResult.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/java/src/Ice/AsyncResult.java b/java/src/Ice/AsyncResult.java index 2bf8cddd24a..0ccf2f61aea 100644 --- a/java/src/Ice/AsyncResult.java +++ b/java/src/Ice/AsyncResult.java @@ -131,6 +131,20 @@ public class AsyncResult } /** + * If the invocation failed with a local exception, throws the local exception. + **/ + public final void throwLocalException() + { + synchronized(_monitor) + { + if(_exception != null) + { + throw _exception; + } + } + } + + /** * This method returns true if a request was written to the client-side * transport without first being queued. If the request was initially * queued, this method returns false (independent of whether the request |