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
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 Summary
ConstructorDescriptionPrematureCodeException
(String message) This constructs a newPrematureCodeException
with the given error context. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PrematureCodeException
This constructs a newPrematureCodeException
with the given error context.- Parameters:
message
- An error message to display
-