com.marklogic.xcc.exceptions
Class RequestPermissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.marklogic.xcc.exceptions.XccException
com.marklogic.xcc.exceptions.RequestException
com.marklogic.xcc.exceptions.RequestPermissionException
- All Implemented Interfaces:
- Serializable
public class RequestPermissionException
- extends RequestException
This exception indicates missing or incorrect permissions for a server request.
- See Also:
- Serialized Form
|
Method Summary |
String |
getUser()
The user to which this permission issue applies. |
boolean |
isRetryAdvised()
Set to true when a request is expected to succeed if retried with valid credentials. |
RequestPermissionException
public RequestPermissionException(String message,
Request request,
String user)
RequestPermissionException
public RequestPermissionException(String message,
Request request,
String user,
boolean retryAdvised)
RequestPermissionException
public RequestPermissionException(String message,
Request request,
String user,
Throwable cause)
getUser
public String getUser()
- The user to which this permission issue applies.
- Returns:
- A user name as a String.
isRetryAdvised
public boolean isRetryAdvised()
- Set to true when a request is expected to succeed if retried with valid credentials.
- Returns:
- true if the request should be retried.
Copyright © 2013 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com