Module org.tquadrat.foundation.base
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.NullArgumentException
org.tquadrat.foundation.exception.EmptyArgumentException
- All Implemented Interfaces:
Serializable
@ClassVersion(sourceVersion="$Id: EmptyArgumentException.java 820 2020-12-29 20:34:22Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public final class EmptyArgumentException
extends NullArgumentException
This is a specialized implementation for the
IllegalArgumentException
that should be used instead of the latter in cases where an empty String,
array or
Collection
argument is provided as an illegal argument value.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: EmptyArgumentException.java 820 2020-12-29 20:34:22Z tquadrat $
- Since:
- 0.0.5
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.exception.EmptyArgumentException"
-
Field Summary
Fields inherited from class org.tquadrat.foundation.exception.ValidationException
MSG_ValidationFailed
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofEmptyArgumentException
.EmptyArgumentException
(String argName) Creates a new instance ofEmptyArgumentException
. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmptyArgumentException
public EmptyArgumentException()Creates a new instance ofEmptyArgumentException
. -
EmptyArgumentException
Creates a new instance ofEmptyArgumentException
.- Parameters:
argName
- The name of the argument whose value was provided as empty; ifnull
or the empty String, a default message is used that does not use the name of the argument.
-