public class ContinuationPending extends RuntimeException
Context.executeScriptWithContinuations(Script, Scriptable)
and Context.callFunctionWithContinuations(Callable, Scriptable, Object[])
when execution encounters a continuation captured by
Context.captureContinuation()
.
Exception will contain the captured state needed to restart the continuation
with Context.resumeContinuation(Object, Scriptable, Object)
.Modifier and Type | Method and Description |
---|---|
Object |
getApplicationState() |
Object |
getContinuation()
Get continuation object.
|
void |
setApplicationState(Object applicationState)
Store an arbitrary object that applications can use to associate
their state with the continuation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Object getContinuation()
Context.resumeContinuation(Object, Scriptable, Object)
.public void setApplicationState(Object applicationState)
applicationState
- arbitrary application statepublic Object getApplicationState()
Copyright © 2010 - 2020 Adobe. All Rights Reserved