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

public class WrongItemStackException extends RuntimeException
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 Details

    • WrongItemStackException

      @ParametersAreNonnullByDefault public WrongItemStackException(String message)
      This constructs a new WrongItemStackException with the given error context.
      Parameters:
      message - An error message to display