public class OnErrorHandler extends Object
This class maintains an internal copy of onerrorElements for
ScriptEl to allow calling onError(Throwable) several times
with different return result.
| Constructor and Description |
|---|
OnErrorHandler(ScriptEl scriptEl)
Initialize error handler with the list of
OnErrorEl. |
public OnErrorEl onError(Throwable throwable)
OnErrorEl with fallback script.
Note: The returned OnErrorEl element is removed from internal list of elements to avoid handling the same error condition twice.
throwable - Copyright © 2006-2012. All Rights Reserved.