void (Exception e) { Throwable cause = e.getCause(); String message = cause == null ? e.getMessage() : cause.getMessage(); if (message == null || message.length() == 0) { message = IdeBundle.message("dialog.message.no.message"); } Messages.showMessageDialog(IdeBundle.message("dialog.message.error.setting.value", message), IdeBundle.message("dialog.title.invalid.input"), Messages.getErrorIcon()); }