Class NullArgumentException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BlankArgumentException, EmptyArgumentException

@ClassVersion(sourceVersion="$Id: NullArgumentException.java 1060 2023-09-24 19:21:40Z tquadrat $") @API(status=STABLE, since="0.0.5") public sealed class NullArgumentException extends ValidationException permits BlankArgumentException, EmptyArgumentException
This is a specialized implementation for the IllegalArgumentException that should be used instead of the latter in cases where null is provided as an illegal argument value.
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: NullArgumentException.java 1060 2023-09-24 19:21:40Z tquadrat $
Since:
0.0.5
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.exception.NullArgumentException"

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

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

    • NullArgumentException

      Creates a new instance of NullArgumentException.
    • NullArgumentException

      public NullArgumentException(String argName)
      Creates a new instance of NullArgumentException.
      Parameters:
      argName - The name of the argument whose value was provided as null; if null or the empty String, a default message is used that does not use the name of the argument.
    • NullArgumentException

      @API(status=STABLE, since="0.0.7") public NullArgumentException(String argName1, String argName2)
      Creates a new instance of NullArgumentException.
      Parameters:
      argName1 - The name of the first argument whose value was provided as null.
      argName2 - The name of the second argument whose value was provided as null.
      See Also:
    • NullArgumentException

      protected NullArgumentException(String argName, String msgName, String msgNone)

      Creates a new instance of NullArgumentException.

      This constructor was introduced for the EmptyArgumentException.

      Parameters:
      argName - The name of the argument whose value was provided as null; if null or the empty String, a default message is used that does not use the name of the argument.
      msgName - The regular message.
      msgNone - The default message.