Package net.minecraftforge.fml
Class ModLoadingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.minecraftforge.fml.ModLoadingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ModList.UncaughtModLoadingException
General purpose mod loading error message
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionContext for message displayprivate final ModLoadingStage
The stage where this error was encounteredprivate final String
I18N message to use for displayprivate final net.minecraftforge.forgespi.language.IModInfo
Mod Info for mod with issueprivate static final long
-
Constructor Summary
ConstructorDescriptionModLoadingException
(net.minecraftforge.forgespi.language.IModInfo modInfo, ModLoadingStage errorStage, String i18nMessage, Throwable originalException, Object... context) -
Method Summary
Modifier and TypeMethodDescription(package private) static Stream<ModLoadingException>
Object[]
net.minecraftforge.forgespi.language.IModInfo
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
modInfo
private final net.minecraftforge.forgespi.language.IModInfo modInfoMod Info for mod with issue -
errorStage
The stage where this error was encountered -
i18nMessage
I18N message to use for display -
context
Context for message display
-
-
Constructor Details
-
ModLoadingException
public ModLoadingException(net.minecraftforge.forgespi.language.IModInfo modInfo, ModLoadingStage errorStage, String i18nMessage, Throwable originalException, Object... context)
-
-
Method Details
-
fromEarlyException
-
getI18NMessage
-
getContext
-
formatToString
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getModInfo
public net.minecraftforge.forgespi.language.IModInfo getModInfo() -
getCleanMessage
-