java.lang.Object
io.github.thecsdev.tcdcommons.api.util.integrity.SelfDefense

public final class SelfDefense extends Object
For when the mod has had enough, draws its weapons, and starts defending its own integrity.
  • Field Details

    • LINE_SEPARATOR

      public static final String LINE_SEPARATOR
    • MSG_INTEGRITY_VIOLATION_FOUND

      public static final String MSG_INTEGRITY_VIOLATION_FOUND
      See Also:
  • Method Details

    • reportClassInitializer

      public static void reportClassInitializer(Class<?> issueSource) throws ExceptionInInitializerError
      A static initializer appeared where it shouldn't be? Report it here.

      Careful not to unintentionally trigger unwanted code in the initializer.

      Parameters:
      issueSource - The faulty Class.
      Throws:
      ExceptionInInitializerError - Always.
    • dumpClassInfo

      public static String dumpClassInfo(Class<?> clazz)
      Dumps a Class's information in form of String that is then used for logging purposes. The String is intended to be "parseable" and "human-readable".
      Parameters:
      clazz - The target Class.