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:
java.io.Serializable
- Direct Known Subclasses:
ModList.UncaughtModLoadingException
public class ModLoadingException extends java.lang.RuntimeException
General purpose mod loading error message- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Object>
context
Context for message displayprivate ModLoadingStage
errorStage
The stage where this error was encounteredprivate java.lang.String
i18nMessage
I18N message to use for displayprivate net.minecraftforge.forgespi.language.IModInfo
modInfo
Mod Info for mod with issueprivate static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ModLoadingException(net.minecraftforge.forgespi.language.IModInfo modInfo, ModLoadingStage errorStage, java.lang.String i18nMessage, java.lang.Throwable originalException, java.lang.Object... context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatToString()
(package private) static java.util.stream.Stream<ModLoadingException>
fromEarlyException(EarlyLoadingException e)
java.lang.String
getCleanMessage()
java.lang.Object[]
getContext()
java.lang.String
getI18NMessage()
java.lang.String
getMessage()
net.minecraftforge.forgespi.language.IModInfo
getModInfo()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
modInfo
private final net.minecraftforge.forgespi.language.IModInfo modInfo
Mod Info for mod with issue
-
errorStage
private final ModLoadingStage errorStage
The stage where this error was encountered
-
i18nMessage
private final java.lang.String i18nMessage
I18N message to use for display
-
context
private final java.util.List<java.lang.Object> context
Context for message display
-
-
Constructor Detail
-
ModLoadingException
public ModLoadingException(net.minecraftforge.forgespi.language.IModInfo modInfo, ModLoadingStage errorStage, java.lang.String i18nMessage, java.lang.Throwable originalException, java.lang.Object... context)
-
-
Method Detail
-
fromEarlyException
static java.util.stream.Stream<ModLoadingException> fromEarlyException(EarlyLoadingException e)
-
getI18NMessage
public java.lang.String getI18NMessage()
-
getContext
public java.lang.Object[] getContext()
-
formatToString
public java.lang.String formatToString()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getModInfo
public net.minecraftforge.forgespi.language.IModInfo getModInfo()
-
getCleanMessage
public java.lang.String getCleanMessage()
-
-