Klasse AbstractInvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
ArgumentBelongsToParentException,ArgumentContainsElementException,ArgumentDoesNotBelongToParentException,ArgumentDoesNotContainElementException,ArgumentDoesNotHaveAttributeException,ArgumentDoesNotSupportMethodException,ArgumentHasAttributeException,ArgumentIsInRangeException,ArgumentIsNotNullException,ArgumentIsNullException,ArgumentIsOutOfRangeException,BiggerArgumentException,ClosedArgumentException,DeletedArgumentException,EmptyArgumentException,EqualArgumentException,InvalidArgumentException,InvalidPortException,NegativeArgumentException,NewArgumentException,NonEmptyArgumentException,NonNegativeArgumentException,NonPositiveArgumentException,PositiveArgumentException,ReferencedArgumentException,SmallerArgumentException,UnacceptedKeyException,UnconnectedArgumentException,UnequalArgumentException,UnrepresentingArgumentException,UnsupportedCaseException
A
AbstractInvalidArgumentException is a RuntimeException that
is supposed to be thrown when a given argument is not valid.
A AbstractInvalidArgumentException stores the argument the
AbstractInvalidArgumentException was created for.
A AbstractInvalidArgumentException stores the name of the argument
the AbstractInvalidArgumentException was created for.- Version:
- 2025-04-11
- Autor:
- Silvan Wyss
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedAbstractInvalidArgumentException(Object argument) Creates a newAbstractInvalidArgumentExceptionfor the given argument.protectedAbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto) Creates a newAbstractInvalidArgumentExceptionfor the given argument and argumentName of the given argumentNameDtoprotectedAbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto) Creates a newAbstractInvalidArgumentExceptionfor the given argument, argumentName of the given argumentNameDto and errorPredicate of the given errorPredicateDto.protectedAbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto, CauseDto causeDto) Creates a newAbstractInvalidArgumentExceptionfor the given argument, argumentName of the given argumentNameDto, errorPredicate of the given errorPredicateDto and cause of the given causeDto.protectedAbstractInvalidArgumentException(Object argument, ErrorPredicateDto errorPredicateDto) Creates a newAbstractInvalidArgumentExceptionfor the given argument and the errorPredicate of the given errorPredicateDto. -
Methodenübersicht
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
AbstractInvalidArgumentException
Creates a newAbstractInvalidArgumentExceptionfor the given argument.- Parameter:
argument- - Can be null.
-
AbstractInvalidArgumentException
Creates a newAbstractInvalidArgumentExceptionfor the given argument and argumentName of the given argumentNameDto- Parameter:
argument- - Can be null.argumentNameDto-- Löst aus:
RuntimeException- if the given argumentNameDto is null.RuntimeException- if the argumentName of the given argumentNameDto is null or blank.
-
AbstractInvalidArgumentException
protected AbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto) Creates a newAbstractInvalidArgumentExceptionfor the given argument, argumentName of the given argumentNameDto and errorPredicate of the given errorPredicateDto.- Parameter:
argument- - Can be null.argumentNameDto-errorPredicateDto-- Löst aus:
RuntimeException- if the given argumentNameDto is null.RuntimeException- if the argumentName of the given argumentNameDto is null or blank.RuntimeException- if the given errorPredicateDto is null.RuntimeException- if the errorPredicate of the given errorPredicateDto is null or blank.
-
AbstractInvalidArgumentException
protected AbstractInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto, CauseDto causeDto) Creates a newAbstractInvalidArgumentExceptionfor the given argument, argumentName of the given argumentNameDto, errorPredicate of the given errorPredicateDto and cause of the given causeDto.- Parameter:
argument- - Can be null.argumentNameDto-errorPredicateDto-causeDto-- Löst aus:
RuntimeException- if the given argumentNameDto is null.RuntimeException- if the argumentName of the given argumentNameDto is null or blank.RuntimeException- if the given errorPredicateDto is null.RuntimeException- if the errorPredicate of the given errorPredicateDto is null or blank.RuntimeException- if the given causeDto is null.RuntimeException- if the cause of the given causeDto is null.
-
AbstractInvalidArgumentException
Creates a newAbstractInvalidArgumentExceptionfor the given argument and the errorPredicate of the given errorPredicateDto.- Parameter:
argument- - Can be null.errorPredicateDto-- Löst aus:
RuntimeException- if the given errorPredicateDto is null.RuntimeException- if the errorPredicate of the given errorPredicateDto is null or blank.
-
-
Methodendetails
-
getArgumentName
- Gibt zurück:
- the name of the argument of the current
AbstractInvalidArgumentException.
-
getErrorPredicate
- Gibt zurück:
- the error predicate of the current
AbstractInvalidArgumentException.
-
getStoredArgument
- Gibt zurück:
- the argument of the current
AbstractInvalidArgumentException.
-