mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[cleanup] Fix Typo
This commit is contained in:
parent
a78f26f387
commit
9a28e0eb21
1 changed files with 22 additions and 22 deletions
|
@ -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
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -7,10 +7,10 @@
|
|||
*
|
||||
* Initial Contributors:
|
||||
* The following IBM employees contributed to the Remote System Explorer
|
||||
* component that contains this file: David McKnight, Kushal Munir,
|
||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||
* component that contains this file: David McKnight, Kushal Munir,
|
||||
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
*******************************************************************************/
|
||||
|
@ -25,11 +25,11 @@ import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
|||
/**
|
||||
* Base class for remote file system exceptions.
|
||||
* <p>
|
||||
* All remote file exceptions are guaranteed to have a translated message retrievable
|
||||
* via getMessage(), to make it easy to display to the user.
|
||||
* All remote file exceptions are guaranteed to have a translated message
|
||||
* retrievable via getMessage(), to make it easy to display to the user.
|
||||
* <p>
|
||||
* All child exceptions potentially contain an imbedded exception that
|
||||
* is the original exception from the remote system.
|
||||
* All child exceptions potentially contain an embedded exception that is the
|
||||
* original exception from the remote system.
|
||||
* <p>
|
||||
* 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 Exception wrappedException = null;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor for RemoteFileException with an error message for getMessage() to return.
|
||||
* @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)
|
||||
{
|
||||
|
@ -54,17 +54,17 @@ public class RemoteFileException extends SystemMessageException
|
|||
}
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
this(msg, null);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Constructor for RemoteFileException with an error message for getMessage() to return,
|
||||
* and a wrapped exception to contain. It is accessed via getRemoteException().
|
||||
* @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
|
||||
*/
|
||||
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.
|
||||
* 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
|
||||
*/
|
||||
public RemoteFileException(String msg, Exception remoteException)
|
||||
{
|
||||
super(msg);
|
||||
wrappedException = remoteException;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
this(msg, null);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Constructor for RemoteFileException with an error message for getMessage() to return.
|
||||
* 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
|
||||
*/
|
||||
public RemoteFileException(SystemMessage msg, Exception remoteException)
|
||||
{
|
||||
super(msg);
|
||||
wrappedException = remoteException;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @return the original remote exception
|
||||
*/
|
||||
|
@ -109,15 +109,15 @@ public class RemoteFileException extends SystemMessageException
|
|||
{
|
||||
return wrappedException;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private static String getString(ResourceBundle bundle, String key)
|
||||
{
|
||||
String msg = null;
|
||||
try { msg = bundle.getString(key); } catch (Exception exc) {}
|
||||
if (msg == null)
|
||||
msg = "Message with key " + key + " not found"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
return msg;
|
||||
return msg;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue