Class ForwardRouteException

All Implemented Interfaces:
Serializable, ResponseResetableException

public class ForwardRouteException extends ResponseResetableExceptionDefault
Exception that will forward the request to another route.
See Also:
  • Constructor Details

    • ForwardRouteException

      public ForwardRouteException(String newRoute)
      Parameters:
      newRoute - The new route to forward to. This can be a full URL or a path (+ potential queryString)
    • ForwardRouteException

      public ForwardRouteException(String newRoute, boolean resetResponse)
      Parameters:
      newRoute - The new route to forward to. This can be a full URL or a path (+ potential queryString)
      resetResponse - If not already flushed, should the response be reset before running the new route?
    • ForwardRouteException

      public ForwardRouteException(String newRoute, String message)
      Parameters:
      newRoute - The new route to forward to. This can be a full URL or a path (+ potential queryString)
    • ForwardRouteException

      public ForwardRouteException(String newRoute, String message, boolean resetResponse)
      Parameters:
      newRoute - The new route to forward to. This can be a full URL or a path (+ potential queryString)
      resetResponse - If not already flushed, should the response be reset before running the new route?
  • Method Details

    • getNewRoute

      public String getNewRoute()
      The new route to forward to. This can be a full URL or a path (+ potential queryString)