org.apache.chemistry.opencmis.commons.exceptions
Class CmisBaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CmisConnectionException, CmisConstraintException, CmisContentAlreadyExistsException, CmisFilterNotValidException, CmisInvalidArgumentException, CmisNameConstraintViolationException, CmisNotSupportedException, CmisObjectNotFoundException, CmisPermissionDeniedException, CmisRuntimeException, CmisStorageException, CmisStreamNotSupportedException, CmisUpdateConflictException, CmisVersioningException

public abstract class CmisBaseException
extends RuntimeException

Base exception class for all CMIS client exceptions.

See Also:
Serialized Form

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

CmisBaseException

public CmisBaseException()
Default constructor.


CmisBaseException

public CmisBaseException(String message,
                         BigInteger code,
                         Throwable cause)
Constructor.

Parameters:
message - error message
code - error code
cause - the cause

CmisBaseException

public CmisBaseException(String message,
                         String errorContent,
                         Throwable cause)
Constructor.

Parameters:
message - error message
errorContent - error page content
cause - the cause

CmisBaseException

public CmisBaseException(String message,
                         BigInteger code)
Constructor.

Parameters:
message - error message
code - error code

CmisBaseException

public CmisBaseException(String message,
                         String errorContent)
Constructor.

Parameters:
message - error message
errorContent - error page content

CmisBaseException

public CmisBaseException(String message,
                         Throwable cause)
Constructor.

Parameters:
message - error message
cause - the cause

CmisBaseException

public CmisBaseException(String message)
Constructor.

Parameters:
message - error message
Method Detail

getCode

public BigInteger getCode()
Returns the error code sent by the CMIS repository (Web Services binding only).

Returns:
error code or null if the CMIS repository didn't send an error code or the binding doesn't support error codes.

getErrorContent

public String getErrorContent()
Returns the content of the error page sent by the web server (AtomPub binding only).

Returns:
the content of the error page or null if the server didn't send text content.


Copyright © 2009-2010 The Apache Software Foundation. All Rights Reserved.