Class IllegalInstanceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
civitas.celestis.exception.IllegalInstanceException
All Implemented Interfaces:
Serializable

public class IllegalInstanceException extends Exception
Thrown when an un-instantiable static-reference-only class is attempted to be instantiated.
See Also:
  • Constructor Details

    • IllegalInstanceException

      public IllegalInstanceException()
      Creates an illegal instance exception with no message.
    • IllegalInstanceException

      public IllegalInstanceException(@Nonnull String message)
      Creates a new illegal instance exception.
      Parameters:
      message - The message of this exception
    • IllegalInstanceException

      public IllegalInstanceException(@Nonnull Object instance)
      Creates a new illegal instance exception.
      Parameters:
      instance - The illegal instance
    • IllegalInstanceException

      public IllegalInstanceException(@Nonnull Class<?> instanceClass)
      Creates a new illegal instance exception.
      Parameters:
      instanceClass - The illegal instance's class