com.marklogic.xcc.exceptions

## Class XccException

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

- All Implemented Interfaces:
    java.io.Serializable
  Direct Known Subclasses:
    RequestException, UnexpectedResponseException, XccConfigException

      public abstract class XccException
      extends java.lang.Exception

  Superclass of all exceptions specific to XCC. This is an abstract class and will never be thrown directly. Only subclasses will be ever be thrown. You can name this class in a try/catch clause to catch all checked XCC exceptions.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `XccException(java.lang.String message)`
    `protected` | `XccException(java.lang.String message, java.lang.Throwable cause)`

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

    - #### XccException

          protected XccException(java.lang.String message)

    - #### XccException

          protected XccException(java.lang.String message,
                                 java.lang.Throwable cause)

Copyright © 2025 MarkLogic Corporation. All Rights Reserved.

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