public abstract class CmisBaseException extends RuntimeException
Modifier | Constructor and Description |
---|---|
protected |
CmisBaseException()
Default constructor.
|
protected |
CmisBaseException(String message)
Constructor.
|
protected |
CmisBaseException(String message,
BigInteger code)
Constructor.
|
protected |
CmisBaseException(String message,
BigInteger code,
String errorContent)
Constructor.
|
protected |
CmisBaseException(String message,
BigInteger code,
String errorContent,
Map<String,String> additionalData)
Constructor.
|
protected |
CmisBaseException(String message,
BigInteger code,
Throwable cause)
Constructor.
|
protected |
CmisBaseException(String message,
String errorContent)
Constructor.
|
protected |
CmisBaseException(String message,
String errorContent,
Map<String,String> additionalData,
Throwable cause)
Constructor.
|
protected |
CmisBaseException(String message,
String errorContent,
Throwable cause)
Constructor.
|
protected |
CmisBaseException(String message,
Throwable cause)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAdditionalData()
Returns additional data, if available.
|
String |
getAdditionalData(String key)
Returns additional data, if available.
|
BigInteger |
getCode()
Returns the error code sent by the CMIS repository (Web Services binding
only).
|
String |
getErrorContent()
Returns the content of the error page sent by the web server.
|
abstract String |
getExceptionName()
Returns the name of the exception as defined in the CMIS specification.
|
void |
setAdditionalData(Map<String,String> data)
Sets additional data.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected CmisBaseException()
protected CmisBaseException(String message, BigInteger code, Throwable cause)
message
- error messagecode
- error codecause
- the causeprotected CmisBaseException(String message, String errorContent, Map<String,String> additionalData, Throwable cause)
message
- error messageerrorContent
- error page contentadditionalData
- additional datacause
- the causeprotected CmisBaseException(String message, String errorContent, Throwable cause)
message
- error messageerrorContent
- error page contentcause
- the causeprotected CmisBaseException(String message, BigInteger code)
message
- error messagecode
- error codeprotected CmisBaseException(String message, BigInteger code, String errorContent)
message
- error messagecode
- error codeerrorContent
- error page contentprotected CmisBaseException(String message, BigInteger code, String errorContent, Map<String,String> additionalData)
message
- error messagecode
- error codeerrorContent
- error page contentadditionalData
- additional dataprotected CmisBaseException(String message, String errorContent)
message
- error messageerrorContent
- error page contentprotected CmisBaseException(String message, Throwable cause)
message
- error messagecause
- the causeprotected CmisBaseException(String message)
message
- error messagepublic BigInteger getCode()
null
if the CMIS repository didn't send an
error code or the binding doesn't support error codes.public String getErrorContent()
null
if the server
didn't send text content.public Map<String,String> getAdditionalData()
null
public String getAdditionalData(String key)
key
- the data keynull
public void setAdditionalData(Map<String,String> data)
data
- the datapublic abstract String getExceptionName()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.