RSE
Release 3.2

org.eclipse.rse.services.files
Class RemoteFileException

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.files.RemoteFileException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RemoteFileIOException, RemoteFileSecurityException, RemoteFolderNotEmptyException

public class RemoteFileException
extends SystemRemoteMessageException

Base class for remote file system exceptions.

All remote file 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. Extends SystemRemoteMessageException since 3.0

Since:
3.0
See Also:
Serialized Form

Constructor Summary
RemoteFileException(ResourceBundle bundle, String key)
          Deprecated. this constructor violates the contract that all RemoteFileException instances must have an embedded remote exception for SystemRemoteMessageException.getRemoteException() to return
RemoteFileException(ResourceBundle bundle, String key, Exception remoteException)
          Constructor for RemoteFileException with an error message for getMessage() to return, and a wrapped exception to contain.
RemoteFileException(String msg)
          Deprecated. this constructor violates the contract that all RemoteFileException instances must have an embedded remote exception for SystemRemoteMessageException.getRemoteException() to return
RemoteFileException(String msg, Exception remoteException)
          Constructor for RemoteFileException with an error message for getMessage() to return.
RemoteFileException(SystemMessage msg)
          Deprecated. this constructor violates the contract that all RemoteFileException instances must have an embedded remote exception for SystemRemoteMessageException.getRemoteException() to return
RemoteFileException(SystemMessage msg, Exception remoteException)
          Constructor for RemoteFileException with an error message for getMessage() to return.
 
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

RemoteFileException

public RemoteFileException(ResourceBundle bundle,
                           String key)
Deprecated. this constructor violates the contract that all RemoteFileException instances must have an embedded remote exception for SystemRemoteMessageException.getRemoteException() to return

Constructor for RemoteFileException with an error message for getMessage() to return.

Parameters:
bundle - The ResourceBundle containing the error message
key - The key to retrieve the message

RemoteFileException

public RemoteFileException(String msg)
Deprecated. this constructor violates the contract that all RemoteFileException instances must have an embedded remote exception for SystemRemoteMessageException.getRemoteException() to return

Constructor for RemoteFileException with an error message for getMessage() to return.

Parameters:
msg - The fully resolved message

RemoteFileException

public RemoteFileException(ResourceBundle bundle,
                           String key,
                           Exception remoteException)
Constructor for RemoteFileException with an error message for getMessage() to return, and a wrapped exception to contain. It is accessed via getRemoteException().

Parameters:
bundle - The ResourceBundle containing the error message
key - The key to retrieve the message
remoteException - The exception to contain within this exception

RemoteFileException

public RemoteFileException(String msg,
                           Exception remoteException)
Constructor for RemoteFileException 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

RemoteFileException

public RemoteFileException(SystemMessage msg)
Deprecated. this constructor violates the contract that all RemoteFileException instances must have an embedded remote exception for SystemRemoteMessageException.getRemoteException() to return

Constructor for RemoteFileException with an error message for getMessage() to return.

Parameters:
msg - The fully resolved message

RemoteFileException

public RemoteFileException(SystemMessage msg,
                           Exception remoteException)
Constructor for RemoteFileException 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

RSE
Release 3.2

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