|
||||||||||
| 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 | |
|---|---|
CmisBaseException()
Default constructor. |
|
CmisBaseException(String message)
Constructor. |
|
CmisBaseException(String message,
BigInteger code)
Constructor. |
|
CmisBaseException(String message,
BigInteger code,
Throwable cause)
Constructor. |
|
CmisBaseException(String message,
String errorContent)
Constructor. |
|
CmisBaseException(String message,
String errorContent,
Throwable cause)
Constructor. |
|
CmisBaseException(String message,
Throwable cause)
Constructor. |
|
| Method Summary | |
|---|---|
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 (AtomPub binding only). |
| 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 |
|---|
public CmisBaseException()
public CmisBaseException(String message,
BigInteger code,
Throwable cause)
message - error messagecode - error codecause - the cause
public CmisBaseException(String message,
String errorContent,
Throwable cause)
message - error messageerrorContent - error page contentcause - the cause
public CmisBaseException(String message,
BigInteger code)
message - error messagecode - error code
public CmisBaseException(String message,
String errorContent)
message - error messageerrorContent - error page content
public CmisBaseException(String message,
Throwable cause)
message - error messagecause - the causepublic CmisBaseException(String message)
message - error message| Method Detail |
|---|
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||