Class 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 new ClientResponseException with the specified detail message.
      ClientResponseException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new ClientResponseException with the specified detail message and cause.
      ClientResponseException​(java.lang.String message, java.lang.Throwable exc, int statusCode)
      Constructs a new ClientResponseException with the specified detail message, cause, and status code.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClientResponseException

        public ClientResponseException​(java.lang.String message)
        Constructs a new ClientResponseException with the specified detail message.
        Parameters:
        message - A String describing the reason for the client response error.
      • ClientResponseException

        public ClientResponseException​(java.lang.String message,
                                       java.lang.Throwable exc,
                                       int statusCode)
        Constructs a new ClientResponseException with the specified detail message, cause, and status code.
        Parameters:
        message - A String describing the reason for the client response error.
        exc - The underlying Throwable cause of the error.
        statusCode - An int representing the HTTP status code received.
      • ClientResponseException

        public ClientResponseException​(java.lang.String message,
                                       java.lang.Throwable cause)
        Constructs a new ClientResponseException with the specified detail message and cause.
        Parameters:
        message - A String describing the reason for the client response error.
        cause - The underlying Throwable cause of the error.