public class DefaultNavigationErrorHandler extends Object implements PageNavigationErrorHandler
Constructor and Description |
---|
DefaultNavigationErrorHandler(Navigation nav) |
Modifier and Type | Method and Description |
---|---|
void |
handleError(Exception exception,
Class<? extends UniquePageRole> pageRole) |
void |
handleInvalidPageNameError(Exception exception,
String pageName) |
void |
handleInvalidURLError(Exception exception,
String urlPath) |
public DefaultNavigationErrorHandler(Navigation nav)
public void handleInvalidPageNameError(Exception exception, String pageName)
handleInvalidPageNameError
in interface PageNavigationErrorHandler
exception
- The exception that occurs, triggering the error handler code.pageName
- The name of the page which we tried to navigate to.public void handleError(Exception exception, Class<? extends UniquePageRole> pageRole)
handleError
in interface PageNavigationErrorHandler
exception
- The exception that occurs, triggering the error handler code.pageRole
- The role of the page which we tried to navigate to.public void handleInvalidURLError(Exception exception, String urlPath)
handleInvalidURLError
in interface PageNavigationErrorHandler
exception
- The exception that occurs, triggering the error handler code.urlPath
- The URL path which we tried to navigate to.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.