rice
Class Continuation.SimpleContinuation
java.lang.Object
rice.Continuation.SimpleContinuation
- All Implemented Interfaces:
- Continuation
- Enclosing interface:
- Continuation<R,E extends Exception>
public abstract static class Continuation.SimpleContinuation
- extends Object
- implements Continuation
This class is a Continuation provided for simplicity which
passes both results and exceptions to the receiveResult() method.
| Nested classes/interfaces inherited from interface rice.Continuation |
Continuation.ErrorContinuation<R,E extends Exception>, Continuation.ExternalContinuation<R,E extends Exception>, Continuation.ExternalContinuationRunnable<R,E extends Exception>, Continuation.ExternalRunnable, Continuation.ListenerContinuation<R,E extends Exception>, Continuation.MultiContinuation, Continuation.NamedContinuation, Continuation.SimpleContinuation, Continuation.StandardContinuation<R,E extends Exception> |
|
Method Summary |
void |
receiveException(Exception result)
Called when an exception occurred as a result of the
previous command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Continuation.SimpleContinuation
public Continuation.SimpleContinuation()
receiveException
public void receiveException(Exception result)
- Called when an exception occurred as a result of the
previous command. Simply prints an error message to the screen.
- Specified by:
receiveException in interface Continuation
- Parameters:
result - The exception which was caused.
Copyright © 2010. All Rights Reserved.