1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 00:05:53 +02:00

display exception message in coreexception message

This commit is contained in:
David Inglis 2002-09-18 17:44:54 +00:00
parent 8510ce5ea0
commit e8710267d3

View file

@ -79,6 +79,10 @@ abstract public class AbstractCLaunchDelegate implements ILaunchConfigurationDel
* @param code error code
*/
protected void abort(String message, Throwable exception, int code) throws CoreException {
String newMessage = message;
if ( exception != null ) {
newMessage = message + " : " + exception.getLocalizedMessage();
}
throw new CoreException(new Status(IStatus.ERROR, getPluginID(), code, message, exception));
}