com.sybase.uep.bobclient.utils
Interface IModalRunnable


public interface IModalRunnable

Modal runnables represent blocks of code and associated exception handlers. They are typically used by time-consuming tasks to display message on a modal dialog.

Author:
bdeng

Method Summary
 void handleException(java.lang.Exception exception)
          Handles an exception thrown by this runnable's run method.
 void run()
          Runs this runnable.
 

Method Detail

handleException

void handleException(java.lang.Exception exception)
Handles an exception thrown by this runnable's run method. The processing done here should be specific to the particular usecase for this runnable.

Parameters:
exception - an exception which occurred during processing the body of this runnable (i.e., in run())
See Also:
ModalRunner.run(IModalRunnable)

run

void run()
         throws java.lang.Exception
Runs this runnable. Any exceptions thrown from this method will be passed to this runnable's handleException method.

Throws:
java.lang.Exception - if a problem occurred while running this method. The exception will be processed by handleException
See Also:
ModalRunner.run(IModalRunnable)