com.marklogic.xcc.exceptions

## Class ServerResponseException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - com.marklogic.xcc.exceptions.XccException
      - - com.marklogic.xcc.exceptions.RequestException
        - - com.marklogic.xcc.exceptions.ServerConnectionException
          - - com.marklogic.xcc.exceptions.ServerResponseException

- All Implemented Interfaces:
    java.io.Serializable

      public class ServerResponseException
      extends ServerConnectionException

  This exception indicates that an unrecognized response was received from the server. This may indicate a misconfiguration such that XCC is connecting to something other than a MarkLogic XDBC server port.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServerResponseException(java.lang.String message, Request request, int responseCode, java.lang.String responseMessage)`
    `ServerResponseException(java.lang.String message, Request request, int responseCode, java.lang.String responseMessage, java.lang.Throwable cause)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getResponseCode()`
    `java.lang.String` | `getResponseMessage()`

    - ### Methods inherited from class com.marklogic.xcc.exceptions.RequestException

      `appendRequestInfo, getRequest, isRetryable, isRetryAdvised, toString`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ServerResponseException

          public ServerResponseException(java.lang.String message,
                                         Request request,
                                         int responseCode,
                                         java.lang.String responseMessage)

    - #### ServerResponseException

          public ServerResponseException(java.lang.String message,
                                         Request request,
                                         int responseCode,
                                         java.lang.String responseMessage,
                                         java.lang.Throwable cause)

  - ### Method Detail

    - #### getResponseCode

          public int getResponseCode()

    - #### getResponseMessage

          public java.lang.String getResponseMessage()

Copyright © 2025 MarkLogic Corporation

Complete online documentation for MarkLogic Server, XQuery and related components may be found at docs.progress.com