java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.http.RequestException
- All Implemented Interfaces:
- Serializable
Exception that will be handled by 
DirectHandler, unless server request and server response
 are already available, in which case it would be handled by appropriate error handler of routing.
 This exception is not used by clients.- See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedRequestException(RequestException.Builder builder) A new exception with a predefined status, even type.
- 
Method SummaryModifier and TypeMethodDescriptionstatic RequestException.Builderbuilder()Builder to set up a new HTTP exception.Event type of this exception.booleanWhether to attempt to keep connection alive.request()Transport request with as much information as is available.Response headers that should be added to response.booleanSafe message flag used to control which messages can be sent as part of a response and which should only be logged by the server.status()Configured HTTP status.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
RequestExceptionA new exception with a predefined status, even type. Additional information may be added to simplify handling.- Parameters:
- builder- builder with details to create this instance
 
 
- 
- 
Method Details- 
builderBuilder to set up a new HTTP exception.- Returns:
- builder
 
- 
statusConfigured HTTP status.- Returns:
- status
 
- 
eventTypeEvent type of this exception.- Returns:
- event type
 
- 
requestTransport request with as much information as is available.- Returns:
- request
 
- 
keepAlivepublic boolean keepAlive()Whether to attempt to keep connection alive.- Returns:
- whether to keep connection alive
 
- 
responseHeadersResponse headers that should be added to response.- Returns:
- response headers
 
- 
safeMessagepublic boolean safeMessage()Safe message flag used to control which messages can be sent as part of a response and which should only be logged by the server.- Returns:
- safe message flag
 
 
-