Class InvalidArgumentException
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BlankArgumentException, EmptyArgumentException, NullArgumentException
@ClassVersion(sourceVersion="$Id: InvalidArgumentException.java 1293 2026-10-16 13:12:15Z tquadrat $")
@API(status=MAINTAINED,
since="0.25.13")
abstract sealed class InvalidArgumentException
extends ValidationException
permits BlankArgumentException, EmptyArgumentException, NullArgumentException
This is the common base class for specialised implementations
of
IllegalArgumentException.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: InvalidArgumentException.java 1293 2026-10-16 13:12:15Z tquadrat $
- Since:
- 0.25.13
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.exception.InvalidArgumentException"
-
Field Summary
Fields inherited from class ValidationException
MSG_ValidationFailed -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInvalidArgumentException(String argName, String msgName, String msgNone) Creates a new instance ofInvalidArgumentException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidArgumentException
Creates a new instance of
InvalidArgumentException.- 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.msgName- The regular message.msgNone- The default message.
-
