public.javadoc.org.spincast.core.exceptions.ResponseResetableExceptionDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
ResponseResetableExceptionDefault (org.spincast:spincast-framework 1.0.0 API)
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:
- Serialized Form
-
-
Constructor Summary
Constructors
Constructor and Description
ResponseResetableExceptionDefault()
If not already flushed, the response will be
reset before running the new route
ResponseResetableExceptionDefault(boolean resetResponse)
If not already flushed, the response will be
reset before running the new route
ResponseResetableExceptionDefault(String message)
If not already flushed, the response will be
reset before running the new route
ResponseResetableExceptionDefault(String message,
boolean resetResponse)
If not already flushed, the response will be
reset before running the new route
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
boolean
isResetResponse()
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 Detail
-
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 Detail
-
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 interface ResponseResetableException
Copyright © 2019. All rights reserved.