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
APrematureCodeException
is thrown when aSlimefunAddon
tried to access Slimefun code before Slimefun was enabled. Always let your code inside onEnable() or later, never on class initialization.- Author:
- TheBusyBiscuit
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrematureCodeException(String message)
This constructs a newPrematureCodeException
with the given error context.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PrematureCodeException
public PrematureCodeException(String message)
This constructs a newPrematureCodeException
with the given error context.- Parameters:
message
- An error message to display
-
-