Class IncompatibleItemHandlerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.thebusybiscuit.slimefun4.api.exceptions.IncompatibleItemHandlerException
- All Implemented Interfaces:
Serializable
An
IncompatibleItemHandlerException
is thrown whenever a Plugin
tried
to add an ItemHandler
to a SlimefunItem
despite the SlimefunItem
not allowing an ItemHandler
of that type to be added.
An example for this is the BlockUseHandler
, it can only be added to blocks.
So it will throw this exception when it is added to a non-block item.- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
ConstructorDescriptionIncompatibleItemHandlerException
(String message, SlimefunItem item, ItemHandler handler) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IncompatibleItemHandlerException
@ParametersAreNonnullByDefault public IncompatibleItemHandlerException(String message, SlimefunItem item, ItemHandler handler) - Parameters:
message
- The reason why they are incompatibleitem
- TheSlimefunItem
that was affected by thishandler
- TheItemHandler
which someone tried to add
-