Package org.spincast.core.exceptions
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 Summary
ConstructorDescriptionIf not already flushed, the response will be reset before running the new routeResponseResetableExceptionDefault
(boolean resetResponse) If not already flushed, the response will be reset before running the new routeResponseResetableExceptionDefault
(String message) If not already flushed, the response will be reset before running the new routeResponseResetableExceptionDefault
(String message, boolean resetResponse) If not already flushed, the response will be reset before running the new route -
Method Summary
Modifier and TypeMethodDescriptionboolean
Should the the response be reset before starting the "Exception" routing process?Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseResetableExceptionDefault
public ResponseResetableExceptionDefault()If not already flushed, the response will be reset before running the new route -
ResponseResetableExceptionDefault
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
If not already flushed, the response will be reset before running the new route
-
-
Method Details
-
isResetResponse
public boolean isResetResponse()Description copied from interface:ResponseResetableException
Should the the response be reset before starting the "Exception" routing process?- Specified by:
isResetResponse
in interfaceResponseResetableException
-