Class PrematureCodeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.thebusybiscuit.slimefun4.api.exceptions.PrematureCodeException
All Implemented Interfaces:
Serializable

public class PrematureCodeException extends RuntimeException
A PrematureCodeException is thrown when a SlimefunAddon tried to access Slimefun code before Slimefun was enabled. Always let your code run inside onEnable() or later, never on class initialization.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • PrematureCodeException

      @ParametersAreNonnullByDefault public PrematureCodeException(String message)
      This constructs a new PrematureCodeException with the given error context.
      Parameters:
      message - An error message to display