Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.nav.client.local
Class DefaultNavigationErrorHandler

java.lang.Object
  extended by org.jboss.errai.ui.nav.client.local.DefaultNavigationErrorHandler
All Implemented Interfaces:
PageNavigationErrorHandler

public class DefaultNavigationErrorHandler
extends Object
implements PageNavigationErrorHandler

Implements default error handling behavior for page navigation.

Author:
Divya Dadlani

Constructor Summary
DefaultNavigationErrorHandler(Navigation navigation)
           
 
Method Summary
 void handleError(Exception exception, Class<? extends PageRole> pageRole)
           
 void handleError(Exception exception, String pageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNavigationErrorHandler

public DefaultNavigationErrorHandler(Navigation navigation)
Method Detail

handleError

public void handleError(Exception exception,
                        String pageName)
Specified by:
handleError in interface PageNavigationErrorHandler
Parameters:
exception - The exception that occurs, triggering the error handler code.
pageName - The name of the page which we tried to navigate to.

handleError

public void handleError(Exception exception,
                        Class<? extends PageRole> pageRole)
Specified by:
handleError in interface PageNavigationErrorHandler
Parameters:
exception - The exception that occurs, triggering the error handler code.
pageRole - The role of the page which we tried to navigate to.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.