Package io.undertow.server
Class TruncatedResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.undertow.server.TruncatedResponseException
- All Implemented Interfaces:
Serializable
An exception indicating that the response channel was prematurely closed. The response channel must be shut
down and flushed successfully after all requests, even those which do not send a response body.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aTruncatedResponseException
with no detail message.Constructs aTruncatedResponseException
with the specified detail message.TruncatedResponseException
(String msg, Throwable cause) Constructs aTruncatedResponseException
with the specified detail message and cause.Constructs aTruncatedResponseException
with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TruncatedResponseException
public TruncatedResponseException()Constructs aTruncatedResponseException
with no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
. -
TruncatedResponseException
Constructs aTruncatedResponseException
with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.- Parameters:
msg
- the detail message
-
TruncatedResponseException
Constructs aTruncatedResponseException
with the specified cause. The detail message is set to:(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
TruncatedResponseException
Constructs aTruncatedResponseException
with the specified detail message and cause.- Parameters:
msg
- the detail messagecause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-