public abstract class MarkLogicServerException extends RuntimeException
Abstract class that implements functionality for errors returned from a MarkLogic REST API instance. A REST instance wraps error messages into an XML or JSON structure that can be parsed and turned into the FailedRequest Java object. The MarkLogicServerException contains the FailedRequest object which is incorporated into getMessage() or can be examined via getFailedRequest()
FailedRequest,
Serialized Form| Constructor and Description |
|---|
MarkLogicServerException(String localMessage) |
MarkLogicServerException(String localMessage,
com.marklogic.client.impl.FailedRequest failedRequest) |
MarkLogicServerException(String localMessage,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
com.marklogic.client.impl.FailedRequest |
getFailedRequest() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MarkLogicServerException(String localMessage, com.marklogic.client.impl.FailedRequest failedRequest)
localMessage - message describing the exceptionfailedRequest - details about the failed request behind this exceptionpublic MarkLogicServerException(String localMessage)
public String getMessage()
getMessage in class Throwablepublic com.marklogic.client.impl.FailedRequest getFailedRequest()
Copyright © 2013-2017 MarkLogic Corporation.