com.ibm.ftt.resources.core.physical.util
Class OperationFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.core.runtime.CoreException
              extended by com.ibm.ftt.resources.core.physical.util.OperationFailedException
All Implemented Interfaces:
IExceptionWrapper, Serializable
Direct Known Subclasses:
EditorOpenerException, InvalidOperationException

public class OperationFailedException
extends org.eclipse.core.runtime.CoreException
implements IExceptionWrapper

A base class for exceptions which occurred during a resource operation.

Use getWrappedThrowable() to retrieve the wrapped exception, if any.

See Also:
Serialized Form

Field Summary
static String COPY_RIGHT
           
 
Constructor Summary
OperationFailedException(String message, String plugin_id, int code)
          Constructs OperationFailedException.
OperationFailedException(String message, String plugin_id, int severity, int code)
          Constructs OperationFailedException with severity.
OperationFailedException(String message, String plugin_id, int code, Throwable e)
          Constructs OperationFailedException with specified wrapped exception.
 
Method Summary
 Throwable getWrappedThrowable()
          Returns wrapped exception.
 

Field Detail

COPY_RIGHT

public static final String COPY_RIGHT
Constructor Detail

OperationFailedException

public OperationFailedException(String message,
                                String plugin_id,
                                int code,
                                Throwable e)
Constructs OperationFailedException with specified wrapped exception.

The detail message, plugin id and error code is used to create the Status object associated with this exception. The severity of the Status object is set to IStatus.ERROR.

Parameters:
message - a string containing detail message
plugin_id - the plugin id to associate with this exception
code - the error code
e - the exception to be wrapped

OperationFailedException

public OperationFailedException(String message,
                                String plugin_id,
                                int code)
Constructs OperationFailedException.

The detail message, plugin id and error code is used to create the Status object associated with this exception. The severity of the Status object is set to IStatus.ERROR.

Parameters:
message - a string containing detail message
plugin_id - the plugin id to associate with this exception
code - the error code

OperationFailedException

public OperationFailedException(String message,
                                String plugin_id,
                                int severity,
                                int code)
Constructs OperationFailedException with severity.

The detail message, plugin id, severity and error code is used to create the Status object associated with this exception.

Parameters:
message - a string containing detail message
plugin_id - the plugin id to associate with this exception
severity - the severify such as IStatus.ERROR, IStatus.CANCEL, etc.
code - the error code
See Also:
Status
Method Detail

getWrappedThrowable

public Throwable getWrappedThrowable()
Description copied from interface: IExceptionWrapper
Returns wrapped exception.

Specified by:
getWrappedThrowable in interface IExceptionWrapper
Returns:
the exception that is being wrapped; null if this exception is actually not used to wrap another exception, but should instead be treated as having its own type for dispatch purposes