Class CommandInitializerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException
de.presti.ree6.commands.exceptions.CommandInitializerException
All Implemented Interfaces:
Serializable

public class CommandInitializerException extends ObjectStreamException
Exception class, used for errors while trying to initialize the Commands.
See Also:
  • Field Details

    • classname

      public final String classname
      Name of the invalid class.
  • Constructor Details

    • CommandInitializerException

      public CommandInitializerException(Class<?> commandClass)
      Constructs an CommandInitializerException object.
      Parameters:
      commandClass - the class.
    • CommandInitializerException

      public CommandInitializerException(String cname, String reason)
      Constructs an CommandInitializerException object.
      Parameters:
      cname - a String naming the invalid class.
      reason - a String describing the reason for the exception.
  • Method Details

    • getMessage

      public String getMessage()
      Produce the message and include the classname, if present.
      Overrides:
      getMessage in class Throwable