Package com.fauna.exception
Class ClientResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.fauna.exception.FaunaException
-
- com.fauna.exception.ClientException
-
- com.fauna.exception.ClientResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class ClientResponseException extends ClientException
Exception representing errors in the client's response handling.This exception is typically thrown when there is an issue with the response received from Fauna, including unexpected status codes or other response-related errors. Extends
ClientException
to provide information specific to response handling errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientResponseException(java.lang.String message)
Constructs a newClientResponseException
with the specified detail message.ClientResponseException(java.lang.String message, java.lang.Throwable cause)
Constructs a newClientResponseException
with the specified detail message and cause.ClientResponseException(java.lang.String message, java.lang.Throwable exc, int statusCode)
Constructs a newClientResponseException
with the specified detail message, cause, and status code.
-
-
-
Constructor Detail
-
ClientResponseException
public ClientResponseException(java.lang.String message)
Constructs a newClientResponseException
with the specified detail message.- Parameters:
message
- AString
describing the reason for the client response error.
-
ClientResponseException
public ClientResponseException(java.lang.String message, java.lang.Throwable exc, int statusCode)
Constructs a newClientResponseException
with the specified detail message, cause, and status code.- Parameters:
message
- AString
describing the reason for the client response error.exc
- The underlyingThrowable
cause of the error.statusCode
- Anint
representing the HTTP status code received.
-
ClientResponseException
public ClientResponseException(java.lang.String message, java.lang.Throwable cause)
Constructs a newClientResponseException
with the specified detail message and cause.- Parameters:
message
- AString
describing the reason for the client response error.cause
- The underlyingThrowable
cause of the error.
-
-