Oracle® Collaboration Suite Workspaces API Reference
10g (10.1.1.0.2)

Part No. B16233-01


oracle.workspaces
Class CwException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.workspaces.CwException

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CwAttrValException, CwAuthorizationException, CwBusyException, CwInvalidSessionException, CwObjectAlreadyExistException, CwObjectNotFoundException, CwPartialSuccessException, CwResourceException, CwValidationException

public class CwException
extends java.lang.Exception

TODO: make it abstract

See Also:
Serialized Form

Field Summary
static java.lang.String CWEXCEPTION_RESOURCE_BUNDLE_BASE_NAME
The base class name for resource bundle

Constructor Summary
CwException(int exCode)
Class constructor.
CwException(int exCode, java.lang.Object arg1)
Class constructor.
CwException(int exCode, java.lang.Object arg1, java.lang.Object arg2)
Class constructor.
CwException(int exCode, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Class constructor.
CwException(int exCode, java.lang.Throwable e)
Class constructor.
CwException(int exCode, java.lang.Throwable e, java.lang.Object arg1)
Class constructor.
CwException(int exCode, java.lang.Throwable e, java.lang.Object[] args)
Class constructor.
CwException(int exCode, java.lang.Throwable e, java.lang.Object arg1, java.lang.Object arg2)
Class constructor.
CwException(int exCode, java.lang.Throwable e, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Class constructor.
CwException(java.lang.Throwable e)
Class constructor.

Method Summary
void addAdditionalException(java.lang.Throwable t)
Add additional exceptions
int getErrorCode()
Get the error code
java.lang.String getLocalizedMessage()
Gets the localized message with the default locale
java.lang.String getLocalizedMessage(java.util.Locale l)
Gets the localized message with the specified locale
java.lang.String getMessage()
Returns the message associated to this Exception using the default locale.
boolean isRecoveryNeeded()
Singaling that the operation reuslts in an inconsistent state.
java.lang.Throwable[] listAdditionalExceptions()
List all additional exceptions
void printStackTrace()
Print stack trace to the errorstream
void printStackTrace(java.io.PrintStream s)
Print stack trace to specified stream
void printStackTrace(java.io.PrintWriter pw)
Print stack trace to specified stream
void setRecoveryNeeded(boolean recoveryNeeded)
Sets recovery needed

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

CWEXCEPTION_RESOURCE_BUNDLE_BASE_NAME

public static final java.lang.String CWEXCEPTION_RESOURCE_BUNDLE_BASE_NAME
The base class name for resource bundle
See Also:
Constant Field Values

Constructor Detail

CwException

public CwException(int exCode)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.

CwException

public CwException(int exCode,
                   java.lang.Object arg1)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
arg1 - object that will be used as the first and only argument in the exception message.

CwException

public CwException(int exCode,
                   java.lang.Object arg1,
                   java.lang.Object arg2)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
arg1 - object that will be used as the first argument in the exception message.
arg2 - object that will be used as the second argument in the exception message.

CwException

public CwException(int exCode,
                   java.lang.Object arg1,
                   java.lang.Object arg2,
                   java.lang.Object arg3)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
arg1 - object that will be used as the first argument in the exception message.
arg2 - object that will be used as the second argument in the exception message.
arg3 - object that will be used as the thrid argument in the exception message.

CwException

public CwException(int exCode,
                   java.lang.Throwable e)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
e - actual exception

CwException

public CwException(int exCode,
                   java.lang.Throwable e,
                   java.lang.Object arg1)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
e - actual exception
arg1 - object that will be used as the first and only argument in the exception message.

CwException

public CwException(int exCode,
                   java.lang.Throwable e,
                   java.lang.Object[] args)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
e - actual exception
args - object list that will be used as arguments in the exception message.

CwException

public CwException(int exCode,
                   java.lang.Throwable e,
                   java.lang.Object arg1,
                   java.lang.Object arg2)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
e - actual exception
arg1 - object that will be used as the first argument in the exception message.
arg2 - object that will be used as the second argument in the exception message.

CwException

public CwException(int exCode,
                   java.lang.Throwable e,
                   java.lang.Object arg1,
                   java.lang.Object arg2,
                   java.lang.Object arg3)
Class constructor.
Parameters:
exCode - exception code used as a key by the resource bundle to get the exception message.
e - actual exception
arg1 - object that will be used as the first argument in the exception message.
arg2 - object that will be used as the second argument in the exception message.
arg3 - object that will be used as the thrid argument in the exception message.

CwException

public CwException(java.lang.Throwable e)
Class constructor. Will create with exception code CwExceptionConstants.CW_INTERNAL_OP_ERROR

Method Detail

addAdditionalException

public void addAdditionalException(java.lang.Throwable t)
Add additional exceptions

getErrorCode

public int getErrorCode()
Get the error code

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Gets the localized message with the default locale

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale l)
Gets the localized message with the specified locale

getMessage

public java.lang.String getMessage()
Returns the message associated to this Exception using the default locale.

isRecoveryNeeded

public boolean isRecoveryNeeded()
Singaling that the operation reuslts in an inconsistent state. There may be additional errors caputed in additional exceptions.
Returns:
if it is true, the user will need to explicit invoke recovery procedures to fix the inconsistent state caused by this exception.

listAdditionalExceptions

public java.lang.Throwable[] listAdditionalExceptions()
List all additional exceptions

printStackTrace

public void printStackTrace()
Print stack trace to the errorstream

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Print stack trace to specified stream

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Print stack trace to specified stream

setRecoveryNeeded

public void setRecoveryNeeded(boolean recoveryNeeded)
Sets recovery needed

Copyright © 2001, 2005, Oracle. All rights reserved.