Class UnregisteredItemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.github.thebusybiscuit.slimefun4.api.exceptions.UnregisteredItemException
-
- All Implemented Interfaces:
Serializable
public class UnregisteredItemException extends RuntimeException
AnUnregisteredItemException
is thrown whenever aPlugin
tried to access a method prematurely fromSlimefunItem
that can only be called after theSlimefunItem
was registered. In other words... calling this method this early can not result in a logical output, making this anException
.- Author:
- TheBusyBiscuit
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnregisteredItemException(SlimefunItem item)
Constructs a newUnregisteredItemException
with the givenSlimefunItem
-
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
-
UnregisteredItemException
public UnregisteredItemException(SlimefunItem item)
Constructs a newUnregisteredItemException
with the givenSlimefunItem
- Parameters:
item
- TheSlimefunItem
that was affected by this
-
-