aerogear-controller 1.0.1

org.jboss.aerogear.controller.router.error
Class ErrorTarget

java.lang.Object
  extended by 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.


Constructor Summary
ErrorTarget()
           
 
Method Summary
 Throwable error(Throwable throwable)
          Simply logs the exception thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorTarget

public ErrorTarget()
Method Detail

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.

aerogear-controller 1.0.1

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