|
|
|
@ -35,7 +35,12 @@ public class DesignerExiter {
|
|
|
|
|
public void exit(Throwable throwable) { |
|
|
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(throwable.getMessage(), throwable); |
|
|
|
|
|
|
|
|
|
StartErrorMessageCollector.getInstance().record(DesignerErrorMessage.UNEXCEPTED_START_FAILED.getId(), |
|
|
|
|
DesignerErrorMessage.UNEXCEPTED_START_FAILED.getMessage(), |
|
|
|
|
throwable.getMessage()); |
|
|
|
|
|
|
|
|
|
// 尝试进行检测
|
|
|
|
|
List<DetectorResult> results = EnvDetectorCenter.getInstance().terminate(throwable); |
|
|
|
|
|
|
|
|
|
if (Collections.isEmpty(results)) { |
|
|
|
@ -53,9 +58,7 @@ public class DesignerExiter {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void showOldExitDialog(Throwable throwable) { |
|
|
|
|
StartErrorMessageCollector.getInstance().record(DesignerErrorMessage.UNEXCEPTED_START_FAILED.getId(), |
|
|
|
|
DesignerErrorMessage.UNEXCEPTED_START_FAILED.getMessage(), |
|
|
|
|
throwable.getMessage()); |
|
|
|
|
|
|
|
|
|
ErrorDialog dialog = new ErrorDialog(null, Toolkit.i18nText("Fine-Design_Error_Start_Apology_Message"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Error_Start_Report"), |
|
|
|
|
throwable.getMessage()) { |
|
|
|
|