org.alfresco.cmis
Class CMISServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.alfresco.cmis.CMISServiceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CMISConstraintException, CMISContentAlreadyExistsException, CMISFilterNotValidException, CMISInvalidArgumentException, CMISNotSupportedException, CMISObjectNotFoundException, CMISPermissionDeniedException, CMISRuntimeException, CMISStreamNotSupportedException, CMISVersioningException

public abstract class CMISServiceException
extends java.lang.Exception

A base class for all exceptions that map to CMIS SOAP faults / HTTP error codes. Intentionally a checked non-RuntimeException so that the faults codes are propagated and signalled correctly.

See Also:
Serialized Form

Constructor Summary
CMISServiceException(java.lang.String message, java.lang.String faultName, int statusCode)
          Instantiates a new CMIS Service exception.
CMISServiceException(java.lang.String message, java.lang.Throwable cause, java.lang.String faultName, int errorCode)
          Instantiates a new CMIS Service exception.
CMISServiceException(java.lang.Throwable cause, java.lang.String faultName, int errorCode)
          Instantiates a new CMIS Service exception.
 
Method Summary
 java.lang.String getFaultName()
          Gets the fault name.
 int getStatusCode()
          Gets the status code.
 
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

CMISServiceException

public CMISServiceException(java.lang.String message,
                            java.lang.String faultName,
                            int statusCode)
Instantiates a new CMIS Service exception.

Parameters:
message - the message
faultName - the fault name, as per the CMIS spec
statusCode - the status code, as per the CMIS REST binding

CMISServiceException

public CMISServiceException(java.lang.Throwable cause,
                            java.lang.String faultName,
                            int errorCode)
Instantiates a new CMIS Service exception.

Parameters:
cause - the cause
faultName - the fault name, as per the CMIS spec
statusCode - the status code, as per the CMIS REST binding

CMISServiceException

public CMISServiceException(java.lang.String message,
                            java.lang.Throwable cause,
                            java.lang.String faultName,
                            int errorCode)
Instantiates a new CMIS Service exception.

Parameters:
message - the message
cause - the cause
faultName - the fault name, as per the CMIS spec
statusCode - the status code, as per the CMIS REST binding
Method Detail

getFaultName

public java.lang.String getFaultName()
Gets the fault name.

Returns:
the fault name

getStatusCode

public int getStatusCode()
Gets the status code.

Returns:
the status code


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.