1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 04:25:21 +02:00

[cleanup] Fix Typo

This commit is contained in:
Martin Oberhuber 2008-04-09 21:14:09 +00:00
parent a78f26f387
commit 9a28e0eb21

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others. * Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -7,10 +7,10 @@
* *
* Initial Contributors: * Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer * The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight, Kushal Munir, * component that contains this file: David McKnight, Kushal Munir,
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
* *
* Contributors: * Contributors:
* {Name} (company) - description of contribution. * {Name} (company) - description of contribution.
*******************************************************************************/ *******************************************************************************/
@ -25,11 +25,11 @@ import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
/** /**
* Base class for remote file system exceptions. * Base class for remote file system exceptions.
* <p> * <p>
* All remote file exceptions are guaranteed to have a translated message retrievable * All remote file exceptions are guaranteed to have a translated message
* via getMessage(), to make it easy to display to the user. * retrievable via getMessage(), to make it easy to display to the user.
* <p> * <p>
* All child exceptions potentially contain an imbedded exception that * All child exceptions potentially contain an embedded exception that is the
* is the original exception from the remote system. * original exception from the remote system.
* <p> * <p>
* Use {#link getRemoteException()} to retrieve that wrapped exception, if any. * Use {#link getRemoteException()} to retrieve that wrapped exception, if any.
*/ */
@ -42,11 +42,11 @@ public class RemoteFileException extends SystemMessageException
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Exception wrappedException = null; private Exception wrappedException = null;
/** /**
* Constructor for RemoteFileException with an error message for getMessage() to return. * Constructor for RemoteFileException with an error message for getMessage() to return.
* @param bundle The ResourceBundle containing the error message * @param bundle The ResourceBundle containing the error message
* @param key The key to retrieve the message * @param key The key to retrieve the message
*/ */
public RemoteFileException(ResourceBundle bundle, String key) public RemoteFileException(ResourceBundle bundle, String key)
{ {
@ -54,17 +54,17 @@ public class RemoteFileException extends SystemMessageException
} }
/** /**
* Constructor for RemoteFileException with an error message for getMessage() to return. * Constructor for RemoteFileException with an error message for getMessage() to return.
* @param msg The fully resolved message * @param msg The fully resolved message
*/ */
public RemoteFileException(String msg) public RemoteFileException(String msg)
{ {
this(msg, null); this(msg, null);
} }
/** /**
* Constructor for RemoteFileException with an error message for getMessage() to return, * Constructor for RemoteFileException with an error message for getMessage() to return,
* and a wrapped exception to contain. It is accessed via getRemoteException(). * and a wrapped exception to contain. It is accessed via getRemoteException().
* @param bundle The ResourceBundle containing the error message * @param bundle The ResourceBundle containing the error message
* @param key The key to retrieve the message * @param key The key to retrieve the message
* @param remoteException The exception to contain within this exception * @param remoteException The exception to contain within this exception
*/ */
public RemoteFileException(ResourceBundle bundle, String key, Exception remoteException) public RemoteFileException(ResourceBundle bundle, String key, Exception remoteException)
@ -74,34 +74,34 @@ public class RemoteFileException extends SystemMessageException
/** /**
* Constructor for RemoteFileException with an error message for getMessage() to return. * Constructor for RemoteFileException with an error message for getMessage() to return.
* and a wrapped exception to contain. It is accessed via getRemoteException(). * and a wrapped exception to contain. It is accessed via getRemoteException().
* @param msg The fully resolved message * @param msg The fully resolved message
* @param remoteException The exception to contain within this exception * @param remoteException The exception to contain within this exception
*/ */
public RemoteFileException(String msg, Exception remoteException) public RemoteFileException(String msg, Exception remoteException)
{ {
super(msg); super(msg);
wrappedException = remoteException; wrappedException = remoteException;
} }
/** /**
* Constructor for RemoteFileException with an error message for getMessage() to return. * Constructor for RemoteFileException with an error message for getMessage() to return.
* @param msg The fully resolved message * @param msg The fully resolved message
*/ */
public RemoteFileException(SystemMessage msg) public RemoteFileException(SystemMessage msg)
{ {
this(msg, null); this(msg, null);
} }
/** /**
* Constructor for RemoteFileException with an error message for getMessage() to return. * Constructor for RemoteFileException with an error message for getMessage() to return.
* and a wrapped exception to contain. It is accessed via getRemoteException(). * and a wrapped exception to contain. It is accessed via getRemoteException().
* @param msg The fully resolved message * @param msg The fully resolved message
* @param remoteException The exception to contain within this exception * @param remoteException The exception to contain within this exception
*/ */
public RemoteFileException(SystemMessage msg, Exception remoteException) public RemoteFileException(SystemMessage msg, Exception remoteException)
{ {
super(msg); super(msg);
wrappedException = remoteException; wrappedException = remoteException;
} }
/** /**
* @return the original remote exception * @return the original remote exception
*/ */
@ -109,15 +109,15 @@ public class RemoteFileException extends SystemMessageException
{ {
return wrappedException; return wrappedException;
} }
private static String getString(ResourceBundle bundle, String key) private static String getString(ResourceBundle bundle, String key)
{ {
String msg = null; String msg = null;
try { msg = bundle.getString(key); } catch (Exception exc) {} try { msg = bundle.getString(key); } catch (Exception exc) {}
if (msg == null) if (msg == null)
msg = "Message with key " + key + " not found"; //$NON-NLS-1$ //$NON-NLS-2$ msg = "Message with key " + key + " not found"; //$NON-NLS-1$ //$NON-NLS-2$
return msg; return msg;
} }
} }