Class CommandException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.orbyfied.j8.command.exception.CommandException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandExecutionException, CommandParseException

public class CommandException extends RuntimeException
See Also:
  • Field Details

    • rootCommand

      protected final Node rootCommand
  • Constructor Details

    • CommandException

      public CommandException(Node rootCommand, String message)
    • CommandException

      public CommandException(Node rootCommand, Throwable e)
    • CommandException

      public CommandException(Node rootCommand, String msg, Throwable e)
  • Method Details

    • isSevere

      public boolean isSevere()
      Determines if it should be printed to the console and handled like a real, severe error.
      Returns:
      True/false.
    • getRootCommand

      public Node getRootCommand()
    • getErrorName

      public String getErrorName()
    • getFormattedPrefix

      public String getFormattedPrefix()
    • getFormattedSuffix

      public String getFormattedSuffix()
    • getFormattedString

      public String getFormattedString()