org.kuali.student.common.ui.client.security
Class AsyncCallbackFailureHandler

java.lang.Object
  extended by org.kuali.student.common.ui.client.security.AsyncCallbackFailureHandler

public class AsyncCallbackFailureHandler
extends Object

Default KS implementation of failure handling.

Implementing institution should override this class to custom handle failures.


Field Summary
protected static SessionTimeoutHandler sessionTimeoutHandler
          Attempt to provide default session timeout handling.
 
Constructor Summary
AsyncCallbackFailureHandler()
           
 
Method Summary
 void handleFailure(Throwable caught)
          Override this method to process any exceptions you wish to handle.
 void handleTimeout(Throwable caught)
          By default this defers to handleFailure.
 void handleVersionMismatch(Throwable caught)
           
 void onFailure(Throwable caught)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionTimeoutHandler

protected static final SessionTimeoutHandler sessionTimeoutHandler
Attempt to provide default session timeout handling.

Constructor Detail

AsyncCallbackFailureHandler

public AsyncCallbackFailureHandler()
Method Detail

onFailure

public void onFailure(Throwable caught)

handleFailure

public void handleFailure(Throwable caught)
Override this method to process any exceptions you wish to handle. The default implementation displays an error dialog with the message and logs the exception.

Parameters:
caught -

handleTimeout

public void handleTimeout(Throwable caught)
By default this defers to handleFailure. Override this handle a rpc failure due to timeout differently from other exceptions.

Parameters:
caught -

handleVersionMismatch

public void handleVersionMismatch(Throwable caught)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.