|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.core.OnErrorHandler
public class OnErrorHandler
Error handler for scripting elements.
This class maintains an internal copy of onerrorElements for
ScriptEl to allow calling onError(Throwable) several times
with different return result.
| Constructor Summary | |
|---|---|
OnErrorHandler(ScriptEl scriptEl)
Initialize error handler with the list of OnErrorEl. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OnErrorHandler(ScriptEl scriptEl)
OnErrorEl.
scriptEl - scripting element configuration to get onerror info.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||