Package civitas.celestis.exception
Class IllegalInstanceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
civitas.celestis.exception.IllegalInstanceException
- All Implemented Interfaces:
Serializable
Thrown when an un-instantiable static-reference-only class is
attempted to be instantiated.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an illegal instance exception with no message.IllegalInstanceException(Class<?> instanceClass) Creates a new illegal instance exception.IllegalInstanceException(Object instance) Creates a new illegal instance exception.IllegalInstanceException(String message) Creates a new illegal instance exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalInstanceException
public IllegalInstanceException()Creates an illegal instance exception with no message. -
IllegalInstanceException
Creates a new illegal instance exception.- Parameters:
message- The message of this exception
-
IllegalInstanceException
Creates a new illegal instance exception.- Parameters:
instance- The illegal instance
-
IllegalInstanceException
Creates a new illegal instance exception.- Parameters:
instanceClass- The illegal instance's class
-