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:
java.io.Serializable
public class TruncatedResponseException extends java.io.IOExceptionAn 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TruncatedResponseException()Constructs aTruncatedResponseExceptionwith no detail message.TruncatedResponseException(java.lang.String msg)Constructs aTruncatedResponseExceptionwith the specified detail message.TruncatedResponseException(java.lang.String msg, java.lang.Throwable cause)Constructs aTruncatedResponseExceptionwith the specified detail message and cause.TruncatedResponseException(java.lang.Throwable cause)Constructs aTruncatedResponseExceptionwith the specified cause.
-
-
-
Constructor Detail
-
TruncatedResponseException
public TruncatedResponseException()
Constructs aTruncatedResponseExceptionwith no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.
-
TruncatedResponseException
public TruncatedResponseException(java.lang.String msg)
Constructs aTruncatedResponseExceptionwith the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause.- Parameters:
msg- the detail message
-
TruncatedResponseException
public TruncatedResponseException(java.lang.Throwable cause)
Constructs aTruncatedResponseExceptionwith 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
public TruncatedResponseException(java.lang.String msg, java.lang.Throwable cause)Constructs aTruncatedResponseExceptionwith the specified detail message and cause.- Parameters:
msg- the detail messagecause- the cause (which is saved for later retrieval by theThrowable.getCause()method)
-
-