FileNet Content Services
Java Connector v3.0

com.filenet.wcm.api
Class BaseRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.filenet.wcm.api.BaseRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadPropertyValueException, BadReferenceException, BatchException, CannotDeleteObjectException, CannotDetokenizeException, ConcurrentUpdateException, ConfigurationException, ContentEngineException, ContentEngineHardwareException, ContentEngineMemoryException, ContentEngineNetworkException, ContentEngineUnsupportedOperationException, ContentNotFoundException, ElementOrderException, EncryptionException, FreezeException, InsufficientPermissionException, InvalidContentEngineClassException, InvalidCredentialsException, LocalPropertyDescriptionException, MethodNotImplementedException, NoContentInRefException, ObjectCreationException, ObjectLockedException, ObjectStoreNotRespondingException, PropertyRequiresValueException, RemoteServerException, SecurityInheritanceException, TransactionConstraintException, TransactionTimeoutException, UniquenessConstraintException, VersioningException

public class BaseRuntimeException
extends java.lang.RuntimeException

This is an unchecked exception class from which other CS Java Connector unchecked exceptions are inherited. It is also used for a variety of Java-side conditions when a more appropriate exception class is not available. If you want to catch all unchecked exceptions thrown by the CS Java Connector, this is the type of exception to catch.

See Also:
Serialized Form

Constructor Summary
BaseRuntimeException()
           
BaseRuntimeException(java.lang.String s)
           
BaseRuntimeException(java.lang.String s, int faultCode)
           
BaseRuntimeException(java.lang.String s, java.lang.Integer faultCode)
           
 
Method Summary
 int getFaultCode()
          Returns the fault code, if any.
 void setFaultCode(int faultCode)
          Internal use only.
 java.lang.String toString()
          Returns the fault code, if any, appended to the returned String.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseRuntimeException

public BaseRuntimeException()

BaseRuntimeException

public BaseRuntimeException(java.lang.String s)

BaseRuntimeException

public BaseRuntimeException(java.lang.String s,
                            int faultCode)

BaseRuntimeException

public BaseRuntimeException(java.lang.String s,
                            java.lang.Integer faultCode)
Method Detail

getFaultCode

public int getFaultCode()
Returns the fault code, if any.

Some exception types have an affiliated numeric code to indicate that a specific problem has occurred. For example, exceptions thrown as a result of problems on the Content Services server typically propagate a SPI status code that a caller can access via this method. SPI status codes and severity levels of the codes are defined in the ContentEngineException class.

Returns:
An int fault code, if any. A value of 0 means no fault code has been set. (Note that a value of 0 does not mean that no fault has occurred.)

setFaultCode

public void setFaultCode(int faultCode)
Internal use only. This method is used internally by the API to propagate the fault code.


toString

public java.lang.String toString()
Returns the fault code, if any, appended to the returned String.

Returns:
A String that includes the fault code, if any.

FileNet Content Services
Java Connector v3.0