tmf: Avoid throwing exception in TmfTrace.buildStatistics()
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 1 Aug 2013 22:09:04 +0000 (18:09 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 2 Aug 2013 18:42:05 +0000 (14:42 -0400)
commitb22a582a6d27ea93c250b5a13786ac6cf49112b5
tree87f59a0e2d7f3e15f0334405892abcc1a57b7426
parent672a642a70393f70f0ccc299d339472c6aba85a0
tmf: Avoid throwing exception in TmfTrace.buildStatistics()

Replace the exception with an IStatus return value, similar to what was
done with .buildStateSystem().

Also handle the actual values that are returned in the caller (the
traceOpened signal handler) so that any eventual errors are logged.

Change-Id: Ia3b84aa6b195dc897193971e780058411050b59f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/15072
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/lttng2/kernel/core/trace/LttngKernelTrace.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/Activator.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
This page took 0.027595 seconds and 5 git commands to generate.