void (@NotNull Throwable e) { if (e.getMessage() != null) { myProgress.addMessage(myDebuggerSession, MessageCategory.ERROR, e.getMessage()); } if (e instanceof ProcessCanceledException) { myProgress.addMessage(myDebuggerSession, MessageCategory.INFORMATION, JavaDebuggerBundle.message("error.operation.canceled")); return; } String message = e instanceof UnsupportedOperationException ? JavaDebuggerBundle.message("error.operation.not.supported.by.vm") : e instanceof NoClassDefFoundError ? JavaDebuggerBundle.message("error.class.def.not.found", e.getLocalizedMessage()) : e instanceof VerifyError ? JavaDebuggerBundle.message("error.verification.error", e.getLocalizedMessage()) : e instanceof UnsupportedClassVersionError ? JavaDebuggerBundle.message("error.unsupported.class.version", e.getLocalizedMessage()) : e instanceof ClassFormatError ? JavaDebuggerBundle.message("error.class.format.error", e.getLocalizedMessage()) : e instanceof ClassCircularityError ? JavaDebuggerBundle.message("error.class.circularity.error", e.getLocalizedMessage()) : JavaDebuggerBundle.message("error.exception.while.reloading", e.getClass().getName(), e.getLocalizedMessage()); myProgress.addMessage(myDebuggerSession, MessageCategory.ERROR, message); }