Packages com.phoenixplugins.sdk.api exceptions

Class CommandContextException

All Implemented Interfaces:
Serializable

public class CommandContextException extends RuntimeException
Exception thrown when an invalid command argument is encountered. This exception supports translatable messages with optional replacements.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommandContextException(TranslationProvider key, Object... replacements)
    Constructs an InvalidCommandArgument using a translation provider.
    CommandContextException(Translation translation, Object... replacements)
    Constructs an InvalidCommandArgument with a translatable message.
  • Method Summary

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CommandContextException

      public CommandContextException(TranslationProvider key, Object... replacements)
      Constructs an InvalidCommandArgument using a translation provider.
      Parameters:
      key - The translation provider that supplies the translation key.
      replacements - Optional replacements for formatting the translation.
    • CommandContextException

      public CommandContextException(Translation translation, Object... replacements)
      Constructs an InvalidCommandArgument with a translatable message.
      Parameters:
      translation - The translatable message associated with the exception.
      replacements - Optional replacements for formatting the translation.
Last updated 10 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping