|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zkdemo.test.MyExecCleanup
public class MyExecCleanup
Test of execution cleanup. Used to test Bug 1868371.
| Constructor Summary | |
|---|---|
MyExecCleanup()
|
|
| Method Summary | |
|---|---|
void |
cleanup(Execution exec,
Execution parent,
java.util.List errs)
called when an execution is about to be destroyed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyExecCleanup()
| Method Detail |
|---|
public void cleanup(Execution exec,
Execution parent,
java.util.List errs)
throws java.lang.Exception
ExecutionCleanupIf this method throws an exception, the stack trace will be logged, and the error message will be displayed at the client.
When this method is invoked, the execution is still activated, so you can create components here.
cleanup in interface ExecutionCleanupexec - the exection to clean up.parent - the previous execution, or null if no previous at allerrs - a list of exceptions (java.lang.Throwable) if any exception
occured before this method is called, or null if no exeption at all.
Note: you can manipulate the list directly to add or clean up exceptions.
For example, if exceptions are fixed correctly, you can call errs.clear()
such that no error message will be displayed at the client.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||