All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FailedRequestException ,
ForbiddenUserException ,
ResourceNotFoundException ,
ResourceNotResendableException
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()
See Also:
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
com.marklogic.client.impl.FailedRequest
Gets the error message (if any) specific to the
error on the server.
Gets the error code (if any) specific to the
error on the server.
Gets the stack trace (if any) specific to the
error on the server.
Gets the HTTP status message (if any) associated
with the error on the server.
int
Gets the HTTP status code (if any) associated
with the error on the server.
Methods
inherited from class java.lang.Throwable
addSuppressed , fillInStackTrace , getCause , getLocalizedMessage , getStackTrace , getSuppressed , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString
Constructor Details
MarkLogicServerException
public MarkLogicServerException (String localMessage,
com.marklogic.client.impl.FailedRequest failedRequest)
Parameters:
localMessage - message describing the
exception
failedRequest - details about the failed request
behind this exception
MarkLogicServerException
public MarkLogicServerException (String localMessage)
MarkLogicServerException
Method Details
getMessage
Overrides:
getMessage in
class Throwable
getServerStatusCode
public int getServerStatusCode ()
Gets the HTTP status code (if any) associated
with the error on the server.
Returns:
the status code
getServerStatus
public String getServerStatus ()
Gets the HTTP status message (if any) associated
with the error on the server.
Returns:
the status message
getServerMessageCode
public String getServerMessageCode ()
Gets the error code (if any) specific to the
error on the server.
Returns:
the error code
getServerMessage
public String getServerMessage ()
Gets the error message (if any) specific to the
error on the server.
Returns:
the error message
getServerStackTrace
public String getServerStackTrace ()
Gets the stack trace (if any) specific to the
error on the server.
Returns:
the server stack trace
getFailedRequest
public com.marklogic.client.impl.FailedRequest getFailedRequest ()
Copyright (c) 2010-2026 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.