public class OnErrorHandler
extends java.lang.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 . |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<java.lang.String> |
getErrorCodes(java.lang.Throwable t) |
OnErrorEl |
onError(java.lang.Throwable throwable)
Called on error to get a
OnErrorEl with fallback script. |
public OnErrorEl onError(java.lang.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
- protected java.util.Set<java.lang.String> getErrorCodes(java.lang.Throwable t)
t
- throwables chain.Copyright © Copyright 2006-2019 The Scriptella Project Team.