RSE
Release 3.4

org.eclipse.rse.services.clientserver.messages
Class SystemOperationFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.rse.services.clientserver.messages.SystemMessageException
              extended by org.eclipse.rse.services.clientserver.messages.SystemRemoteMessageException
                  extended by org.eclipse.rse.services.clientserver.messages.SystemOperationFailedException
All Implemented Interfaces:
Serializable

public class SystemOperationFailedException
extends SystemRemoteMessageException

Generic exception thrown when anything fails and a child exception is available to provide exception details.

The original remote system's exception message is always embedded and retrievable via getRemoteException().

Since:
3.0
See Also:
Serialized Form

Constructor Summary
SystemOperationFailedException(Exception remoteException)
          Default Constructor.
SystemOperationFailedException(String pluginId, Exception remoteException)
          Constructor with plugin ID.
SystemOperationFailedException(String pluginId, String msg)
          Constructor with plugin ID and plain text failure information.
SystemOperationFailedException(String pluginId, String userMessage, Exception remoteException)
          Constructor with plugin ID and user message.
 
Method Summary
 
Methods inherited from class org.eclipse.rse.services.clientserver.messages.SystemRemoteMessageException
getRemoteException
 
Methods inherited from class org.eclipse.rse.services.clientserver.messages.SystemMessageException
getSystemMessage, setSystemMessage
 
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

SystemOperationFailedException

public SystemOperationFailedException(Exception remoteException)
Default Constructor. Clients are encouraged to use the more specific constructor with pluginId and operationPerformed instead of this one.

Parameters:
remoteException - the initial cause of this exception

SystemOperationFailedException

public SystemOperationFailedException(String pluginId,
                                      String msg)
Constructor with plugin ID and plain text failure information. Clients are encouraged to use the more specific constructor with pluginId and remoteException instead of this one.

Parameters:
msg - message about failed operation

SystemOperationFailedException

public SystemOperationFailedException(String pluginId,
                                      Exception remoteException)
Constructor with plugin ID. Clients are encouraged to use the more specific constructor with pluginId and operationPerformed instead of this one.

Parameters:
remoteException - the initial cause of this exception

SystemOperationFailedException

public SystemOperationFailedException(String pluginId,
                                      String userMessage,
                                      Exception remoteException)
Constructor with plugin ID and user message.

Parameters:
pluginId - ID of the plugin issuing the message.
userMessage - user-readable message detailing cause of the exception, or null. If not specified, a generic message will be used ("Operation failed with exception").
remoteException - the initial cause of this exception. Will be added to the user message.

RSE
Release 3.4

Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.