scala-ide/scala-ide — pull request #337 by dotta (2013-03-06 13:31:38+00:00)
Title: Comply to the debugger interfaces by wrapping JDI runtime exceptions

backport to _release/3.0.x_

Several of the debugger interfaces we implement expect a ``DebugException`` to
be thrown when the called method fails to execute. Failure can occur, for
instance, when a debugger session is terminated by the user. Failing to wrap
the JDI runtime exception in a ``DebugException`` can prevent the debugger to
correctly work and the user is sometime forced to restart Eclipse.

``DebugException`` is a platform exception that is specially treated by
Eclipse.

Fix #1001531

It is not possible to provide tests for this PR, but I monkey tested that stopping the on-going debug session does no longer lead to errors dialog displayed to the user.