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
public class IncompatibleItemHandlerException extends RuntimeException
AnIncompatibleItemHandlerException
is thrown whenever aPlugin
tried to add anItemHandler
to aSlimefunItem
despite theSlimefunItem
not allowing anItemHandler
of that type to be added. An example for this is theBlockUseHandler
, 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:
ItemHandler
,SlimefunItem
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncompatibleItemHandlerException(String message, SlimefunItem item, ItemHandler handler)
-
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
-
IncompatibleItemHandlerException
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
-
-