Class NullArgumentException
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.NullArgumentException
- All Implemented Interfaces:
Serializable
@ClassVersion(sourceVersion="$Id: NullArgumentException.java 1293 2026-10-16 13:12:15Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public final class NullArgumentException
extends InvalidArgumentException
This is a specialised 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 1293 2026-10-16 13:12:15Z tquadrat $
- Since:
- 0.0.5
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.exception.NullArgumentException"
-
Field Summary
Fields inherited from class ValidationException
MSG_ValidationFailed -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofNullArgumentException.NullArgumentException(String argName) Creates a new instance ofNullArgumentException.NullArgumentException(String argName1, String argName2) Creates a new instance ofNullArgumentException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NullArgumentException
public NullArgumentException()Creates a new instance of
NullArgumentException. -
NullArgumentException
Creates a new instance of
NullArgumentException.- Parameters:
argName- The name of the argument whose value was provided asnull; ifnullor the empty String, a default message is used that does not use the name of the argument.
-
NullArgumentException
Creates a new instance of
NullArgumentException.- Parameters:
argName1- The name of the first argument whose value was provided asnull.argName2- The name of the second argument whose value was provided asnull.- See Also:
-
