analysis.xml: Remove "throws Exception"
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 28 Jan 2016 03:43:58 +0000 (22:43 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 28 Jan 2016 16:25:32 +0000 (11:25 -0500)
Replaces throws Exception with throws IOException.

Using such generic exceptions prevents calling methods from
handling true, system-generated exceptions differently than
application-generated errors.

Or, as the former lead of our former project said:
"Don't mess with Exception"

Change-Id: I61f517b8721a5e660d92b7cba7bf97c1382381af
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/65333
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/tmf/analysis/xml/core/module/XmlAnalysisModuleSource.java

index 8d9c942ae0d1dde8d537f51e9f3f01b35ee2f2bb..13d4626e490533ef1401f501191918c6b11f6e3c 100644 (file)
@@ -126,7 +126,7 @@ public class XmlAnalysisModuleSource implements IAnalysisModuleSource {
                 SafeRunner.run(new ISafeRunnable() {
 
                     @Override
-                    public void run() throws Exception {
+                    public void run() throws IOException {
                         if (name != null) {
                             Bundle bundle = Platform.getBundle(name);
                             if (bundle != null) {
This page took 0.026654 seconds and 5 git commands to generate.