Class ForcedFailure
java.lang.Object
dev.xichil.mvui.ForcedFailure
Test switch for the fail-safe paths (D9): with
-Dxis_mvui.forceError=true every
backend hook that calls check(String) fails as if Minecraft had changed under it, so integration
tests can show that the game and sync keep working without the menu. Mod authors can use it the same way, to see
that their mod copes when the library's menus are off. Not for production use.-
Field Summary
Fields -
Method Summary
-
Field Details
-
PROPERTY
The system property, "xis_mvui.forceError": launch with-Dxis_mvui.forceError=trueto make every hook fail.- See Also:
-
-
Method Details
-
check
Throws if the switch is on; backends call it at the start of each hook, insideFailsafe's guard.- Parameters:
hook- names the failing hook in the error, e.g."OptionsScreen.init"- Throws:
IllegalStateException- if-Dxis_mvui.forceError=true
-