Class EmptyArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.tquadrat.foundation.exception.ValidationException
org.tquadrat.foundation.exception.InvalidArgumentException
org.tquadrat.foundation.exception.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"
-
Field Summary
Fields inherited from class ValidationException
MSG_ValidationFailed -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofEmptyArgumentException.EmptyArgumentException(String argName) Creates a new instance ofEmptyArgumentException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmptyArgumentException
public EmptyArgumentException()Creates a new instance of
EmptyArgumentException. -
EmptyArgumentException
Creates a new instance of
EmptyArgumentException.- Parameters:
argName- The name of the argument whose value was provided as empty; ifnullor the empty String, a default message is used that does not use the name of the argument.
-
