1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

added logging of failures

This commit is contained in:
David Inglis 2004-03-19 13:10:07 +00:00
parent 739eb331f3
commit c989de7fd3
2 changed files with 15 additions and 2 deletions

View file

@ -1,4 +1,10 @@
2004-08-19 Alain Magloire 2004-03-19 David Inglis
Added logging on failures in CCorePlugin.
* src/org/eclipse/cdt/core/CCorePlugin.java
2004-03-19 Alain Magloire
Correct typos. Correct typos.

View file

@ -461,6 +461,7 @@ public class CCorePlugin extends Plugin {
} }
} }
} catch (CoreException e) { } catch (CoreException e) {
log(e);
} }
return new IConsole() { // return a null console return new IConsole() { // return a null console
private ConsoleOutputStream nullStream = new ConsoleOutputStream() { private ConsoleOutputStream nullStream = new ConsoleOutputStream() {
@ -487,7 +488,7 @@ public class CCorePlugin extends Plugin {
}; };
} }
public IConsole getConsole() throws CoreException { public IConsole getConsole() {
return getConsole(null); return getConsole(null);
} }
@ -515,6 +516,7 @@ public class CCorePlugin extends Plugin {
list.toArray(configs); list.toArray(configs);
} }
} catch (CoreException e) { } catch (CoreException e) {
log(e);
} }
} }
if (configs == null) { if (configs == null) {
@ -542,6 +544,7 @@ public class CCorePlugin extends Plugin {
list.toArray(ids); list.toArray(ids);
} }
} catch (CoreException e) { } catch (CoreException e) {
log(e);
} }
} }
if (ids == null) { if (ids == null) {
@ -573,6 +576,7 @@ public class CCorePlugin extends Plugin {
list.toArray(parsers); list.toArray(parsers);
} }
} catch (CoreException e) { } catch (CoreException e) {
log(e);
} }
} }
if (parsers == null) { if (parsers == null) {
@ -756,6 +760,7 @@ public class CCorePlugin extends Plugin {
try { try {
return (IProcessList) configElements[0].createExecutableExtension("class"); //$NON-NLS-1$ return (IProcessList) configElements[0].createExecutableExtension("class"); //$NON-NLS-1$
} catch (CoreException e) { } catch (CoreException e) {
log(e);
} }
} }
} }
@ -800,6 +805,7 @@ public class CCorePlugin extends Plugin {
return (IErrorParser[]) list.toArray(empty); return (IErrorParser[]) list.toArray(empty);
} }
} catch (CoreException e) { } catch (CoreException e) {
log(e);
} }
return empty; return empty;
} }
@ -813,6 +819,7 @@ public class CCorePlugin extends Plugin {
if (extensions.length > 0) if (extensions.length > 0)
provider = (IScannerInfoProvider) extensions[0].createExtension(); provider = (IScannerInfoProvider) extensions[0].createExtension();
} catch (CoreException e) { } catch (CoreException e) {
log(e);
} }
} }
return provider; return provider;