Class ResponseResetableExceptionDefault

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.spincast.core.exceptions.ResponseResetableExceptionDefault
All Implemented Interfaces:
Serializable, ResponseResetableException
Direct Known Subclasses:
CustomStatusCodeExceptionDefault, ForwardRouteException, NotFoundException

public class ResponseResetableExceptionDefault extends RuntimeException implements ResponseResetableException
An exception which allows to control if the response should be reset (its buffer, headers, etc.) before running the "Exception" routing process. Note that the response can't be reset if its headers have already been sent.
See Also:
  • Constructor Details

    • ResponseResetableExceptionDefault

      public ResponseResetableExceptionDefault()
      If not already flushed, the response will be reset before running the new route
    • ResponseResetableExceptionDefault

      public ResponseResetableExceptionDefault(String message)
      If not already flushed, the response will be reset before running the new route
    • ResponseResetableExceptionDefault

      public ResponseResetableExceptionDefault(boolean resetResponse)
      If not already flushed, the response will be reset before running the new route
    • ResponseResetableExceptionDefault

      public ResponseResetableExceptionDefault(String message, boolean resetResponse)
      If not already flushed, the response will be reset before running the new route
  • Method Details