com.marklogic.xcc.exceptions

## Class ServerConnectionException

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

- All Implemented Interfaces:
    java.io.Serializable
  Direct Known Subclasses:
    ServerResponseException

      public class ServerConnectionException
      extends RequestException

  This exception indicates a problem with the connection to the server. It most often is a wrapper for an `IOException`.
  See Also:
    `Throwable.getCause()`, Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServerConnectionException(java.lang.String message, Request request)`
    `ServerConnectionException(java.lang.String message, Request request, java.lang.Throwable cause)`

  - ### Method Summary

    - ### 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

    - #### ServerConnectionException

          public ServerConnectionException(java.lang.String message,
                                           Request request)

    - #### ServerConnectionException

          public ServerConnectionException(java.lang.String message,
                                           Request request,
                                           java.lang.Throwable cause)

Copyright © 2025 MarkLogic Corporation

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