org.jboss.aerogear.controller.router.error
Class ErrorTarget
java.lang.Object
org.jboss.aerogear.controller.router.error.ErrorTarget
public class ErrorTarget
- extends Object
ErrorHandler is used as default target for a Route when a route has not defined any explicit error route.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorTarget
public ErrorTarget()
error
public Throwable error(Throwable throwable)
- Simply logs the exception thrown.
- Parameters:
throwable - the error to be logged.
- Returns:
Throwable simply passes through throwable instance passed in.
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.