Class ModLoadingException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.Object> context
      Context for message display
      private ModLoadingStage errorStage
      The stage where this error was encountered
      private java.lang.String i18nMessage
      I18N message to use for display
      private net.minecraftforge.forgespi.language.IModInfo modInfo
      Mod Info for mod with issue
      private 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)  
    • Field Detail

      • 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

      • 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 class java.lang.Throwable
      • getModInfo

        public net.minecraftforge.forgespi.language.IModInfo getModInfo()
      • getCleanMessage

        public java.lang.String getCleanMessage()