mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] Framework-API 调整 Framework 在初始化失败后的行为;
[Change] Framework 在初始化失败后抛出异常中断构造;
This commit is contained in:
parent
9e4a66ca70
commit
551c2097be
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user