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
ClientExceptionto provide information specific to response handling errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientResponseException(java.lang.String message)Constructs a newClientResponseExceptionwith the specified detail message.ClientResponseException(java.lang.String message, java.lang.Throwable cause)Constructs a newClientResponseExceptionwith the specified detail message and cause.ClientResponseException(java.lang.String message, java.lang.Throwable exc, int statusCode)Constructs a newClientResponseExceptionwith the specified detail message, cause, and status code.
-
-
-
Constructor Detail
-
ClientResponseException
public ClientResponseException(java.lang.String message)
Constructs a newClientResponseExceptionwith the specified detail message.- Parameters:
message- AStringdescribing the reason for the client response error.
-
ClientResponseException
public ClientResponseException(java.lang.String message, java.lang.Throwable exc, int statusCode)Constructs a newClientResponseExceptionwith the specified detail message, cause, and status code.- Parameters:
message- AStringdescribing the reason for the client response error.exc- The underlyingThrowablecause of the error.statusCode- Anintrepresenting the HTTP status code received.
-
ClientResponseException
public ClientResponseException(java.lang.String message, java.lang.Throwable cause)Constructs a newClientResponseExceptionwith the specified detail message and cause.- Parameters:
message- AStringdescribing the reason for the client response error.cause- The underlyingThrowablecause of the error.
-
-