Bug 93352 [ErrorHandling] IDEExceptionHandler should not use magic number
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEExceptionHandler.java
String msg = null;
            if (internalError instanceof OutOfMemoryError) {
                msg = MSG_OutOfMemoryError;
            } else if (internalError instanceof StackOverflowError) {
                msg = MSG_StackOverflowError;
            } else if (internalError instanceof VirtualMachineError) {
                msg = MSG_VirtualMachineError;
            } else if (internalError instanceof SWTError) {
                msg = MSG_SWTError;
            } else {
                if (internalError.getMessage() == null) {
                    msg = IDEWorkbenchMessages.InternalErrorNoArg;
                } else {
                    msg = NLS.bind(IDEWorkbenchMessages.InternalErrorOneArg, internalError.getMessage());
                }
                if (Policy.DEBUG_OPEN_ERROR_DIALOG)
                    return openQuestion(null, IDEWorkbenchMessages.Internal_error, msg, internalError, 1);
                else
                    return false;
            }
            
            
            Throwable detail = internalError;
            if (!Policy.DEBUG_OPEN_ERROR_DIALOG)
                detail = null;
            return InternalErrorDialog
                    .openQuestion(null, IDEWorkbenchMessages.Internal_error,
                            MessageFormat.format(MSG_FATAL_ERROR,
                                    new Object[] { msg }), detail, 1);
        } catch (Throwable th) {