Package org.simpleframework.http.core
Class ResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.simpleframework.http.core.ResponseException
-
- All Implemented Interfaces:
java.io.Serializable
class ResponseException extends java.io.IOException
TheResponseException
object is used to represent an exception that is thrown when there is a problem producing the response body. This can be used to wrapIOException
objects that are thrown from the underlying transport.
-
-
Constructor Summary
Constructors Constructor Description ResponseException(java.lang.String message)
Constructor for theResponseException
object.ResponseException(java.lang.String message, java.lang.Throwable cause)
Constructor for theResponseException
object.
-
-
-
Constructor Detail
-
ResponseException
public ResponseException(java.lang.String message)
Constructor for theResponseException
object. This is used to represent an exception that is thrown when producing the response body. The producer exception is an I/O exception and thus exceptions can propagate out of stream methods.- Parameters:
message
- this is the message describing the exception
-
ResponseException
public ResponseException(java.lang.String message, java.lang.Throwable cause)
Constructor for theResponseException
object. This is used to represent an exception that is thrown when producing the response body. The producer exception is an I/O exception and thus exceptions can propagate out of stream methods.- Parameters:
message
- this is the message describing the exceptioncause
- this is the cause of the producer exception
-
-