Class EmptyArgumentException

All Implemented Interfaces:
Serializable

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

This is a specialised implementation for the IllegalArgumentException that should be used instead of the latter in cases where an empty String, an empty array or an empty Collection argument is provided as an illegal argument value.

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

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

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

    • EmptyArgumentException

      Creates a new instance of EmptyArgumentException.

    • EmptyArgumentException

      public EmptyArgumentException(String argName)

      Creates a new instance of EmptyArgumentException.

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