Class WrongItemStackException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.thebusybiscuit.slimefun4.api.exceptions.WrongItemStackException
- All Implemented Interfaces:
Serializable
A
WrongItemStackException
is thrown when someone tries to alter an ItemStack
but actually wanted to alter a different one.
If for example a DamageableItem
accidentally damages the original SlimefunItem
instead of the held ItemStack
, this will be thrown.- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
ConstructorDescriptionWrongItemStackException
(String message) This constructs a newWrongItemStackException
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
-
WrongItemStackException
This constructs a newWrongItemStackException
with the given error context.- Parameters:
message
- An error message to display
-