|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException
public abstract class CmisBaseException
Base exception class for all CMIS client exceptions.
Constructor Summary | |
---|---|
protected |
CmisBaseException()
Default constructor. |
protected |
CmisBaseException(java.lang.String message)
Constructor. |
protected |
CmisBaseException(java.lang.String message,
java.math.BigInteger code)
Constructor. |
protected |
CmisBaseException(java.lang.String message,
java.math.BigInteger code,
java.lang.String errorContent)
Constructor. |
protected |
CmisBaseException(java.lang.String message,
java.math.BigInteger code,
java.lang.Throwable cause)
Constructor. |
protected |
CmisBaseException(java.lang.String message,
java.lang.String errorContent)
Constructor. |
protected |
CmisBaseException(java.lang.String message,
java.lang.String errorContent,
java.lang.Throwable cause)
Constructor. |
protected |
CmisBaseException(java.lang.String message,
java.lang.Throwable cause)
Constructor. |
Method Summary | |
---|---|
java.math.BigInteger |
getCode()
Returns the error code sent by the CMIS repository (Web Services binding only). |
java.lang.String |
getErrorContent()
Returns the content of the error page sent by the web server (AtomPub binding only). |
abstract java.lang.String |
getExceptionName()
Returns the name of the exception as defined in the CMIS specification. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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 |
---|
protected CmisBaseException()
protected CmisBaseException(java.lang.String message, java.math.BigInteger code, java.lang.Throwable cause)
message
- error messagecode
- error codecause
- the causeprotected CmisBaseException(java.lang.String message, java.lang.String errorContent, java.lang.Throwable cause)
message
- error messageerrorContent
- error page contentcause
- the causeprotected CmisBaseException(java.lang.String message, java.math.BigInteger code)
message
- error messagecode
- error codeprotected CmisBaseException(java.lang.String message, java.math.BigInteger code, java.lang.String errorContent)
message
- error messagecode
- error codeerrorContent
- error page contentprotected CmisBaseException(java.lang.String message, java.lang.String errorContent)
message
- error messageerrorContent
- error page contentprotected CmisBaseException(java.lang.String message, java.lang.Throwable cause)
message
- error messagecause
- the causeprotected CmisBaseException(java.lang.String message)
message
- error messageMethod Detail |
---|
public java.math.BigInteger getCode()
null
if the CMIS repository didn't
send an error code or the binding doesn't support error codes.public java.lang.String getErrorContent()
null
if the server
didn't send text content.public abstract java.lang.String getExceptionName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |