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 Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
RequestException
(RequestException.Builder builder) A new exception with a predefined status, even type. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestException.Builder
builder()
Builder to set up a new HTTP exception.Event type of this exception.boolean
Whether to attempt to keep connection alive.request()
Transport request with as much information as is available.Response headers that should be added to response.boolean
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.status()
Configured HTTP status.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RequestException
A 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
-
builder
Builder to set up a new HTTP exception.- Returns:
- builder
-
status
Configured HTTP status.- Returns:
- status
-
eventType
Event type of this exception.- Returns:
- event type
-
request
Transport request with as much information as is available.- Returns:
- request
-
keepAlive
public boolean keepAlive()Whether to attempt to keep connection alive.- Returns:
- whether to keep connection alive
-
responseHeaders
Response headers that should be added to response.- Returns:
- response headers
-
safeMessage
public 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
-