RSE
Release 3.4

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

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RemoteFileException, SystemNetworkIOException, SystemOperationFailedException, SystemRemoteSecurityException

public class SystemRemoteMessageException
extends SystemMessageException

Base class for remote system exceptions.

All remote system exceptions are guaranteed to have a translated message retrievable via getMessage(), to make it easy to display to the user.

All child exceptions potentially contain an embedded exception that is the original exception from the remote system.

Use {#link getRemoteException()} to retrieve that wrapped exception, if any.

Since:
3.0
See Also:
Serialized Form

Constructor Summary
SystemRemoteMessageException(String msg, Exception remoteException)
          Constructor with a plain text message, and a wrapped exception.
SystemRemoteMessageException(SystemMessage msg, Exception remoteException)
          Constructor with an error message for getMessage() to return, and a wrapped exception to contain.
 
Method Summary
 Exception 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

SystemRemoteMessageException

public SystemRemoteMessageException(SystemMessage msg,
                                    Exception remoteException)
Constructor with an error message for getMessage() to return, and a wrapped exception to contain. It is accessed via getRemoteException().

Parameters:
msg - The fully resolved message
remoteException - The exception to contain within this exception

SystemRemoteMessageException

public SystemRemoteMessageException(String msg,
                                    Exception remoteException)
Constructor with a plain text message, and a wrapped exception.

Parameters:
msg - The fully resolved message
remoteException - The exception to contain within this exception
Method Detail

getRemoteException

public Exception getRemoteException()
Returns:
the original remote exception

RSE
Release 3.4

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