[Change] Framework-API 调整 Framework 在初始化失败后的行为;

[Change] Framework 在初始化失败后抛出异常中断构造;
This commit is contained in:
LamGC 2020-10-17 12:02:02 +08:00
parent 9e4a66ca70
commit 551c2097be
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -50,6 +50,7 @@ public abstract class Framework extends Plugin {
wrapper.setFailedException(e); wrapper.setFailedException(e);
wrapper.setPluginState(PluginState.FAILED); wrapper.setPluginState(PluginState.FAILED);
log.error("An exception occurred while initializing the framework", e); log.error("An exception occurred while initializing the framework", e);
throw new IllegalStateException("An exception occurred while initializing the framework", e);
} }
} }