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