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
Exception class, used for errors while trying to initialize the Commands.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCommandInitializerException
(Class<?> commandClass) Constructs an CommandInitializerException object.CommandInitializerException
(String cname, String reason) Constructs an CommandInitializerException object. -
Method Summary
Modifier and TypeMethodDescriptionProduce the message and include the classname, if present.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
classname
Name of the invalid class.
-
-
Constructor Details
-
CommandInitializerException
Constructs an CommandInitializerException object.- Parameters:
commandClass
- the class.
-
CommandInitializerException
Constructs an CommandInitializerException object.- Parameters:
cname
- a String naming the invalid class.reason
- a String describing the reason for the exception.
-
-
Method Details
-
getMessage
Produce the message and include the classname, if present.- Overrides:
getMessage
in classThrowable
-