Class PrivateConstructorForStaticClassCalledError

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.tquadrat.foundation.exception.PrivateConstructorForStaticClassCalledError
All Implemented Interfaces:
Serializable

@ClassVersion(sourceVersion="$Id: PrivateConstructorForStaticClassCalledError.java 1293 2026-10-16 13:12:15Z tquadrat $") @API(status=STABLE, since="0.0.5") public class PrivateConstructorForStaticClassCalledError extends AssertionError

This implementation of Error should be called from private constructors of static classes (classes that does not allow any instances because they have only static methods or constants). The message that is stored with the error is the name of the respective class.

Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: PrivateConstructorForStaticClassCalledError.java 1293 2026-10-16 13:12:15Z tquadrat $
Since:
0.0.5
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.exception.PrivateConstructorForStaticClassCalledError"⁠

UML Diagram for "org.tquadrat.foundation.exception.PrivateConstructorForStaticClassCalledError"

UML Diagram for "org.tquadrat.foundation.exception.PrivateConstructorForStaticClassCalledError"⁠
  • Constructor Details

    • PrivateConstructorForStaticClassCalledError

      Creates a new instance of PrivateConstructorForStaticClassCalledError.

      Parameters:
      message - Should be the name of the respective static class.
    • PrivateConstructorForStaticClassCalledError

      Creates a new instance of PrivateConstructorForStaticClassCalledError.

      Parameters:
      theClass - The respective static class.