Klasse ArgumentDoesNotHaveAttributeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.InvalidArgumentException
ch.nolix.core.errorcontrol.invalidargumentexception.ArgumentDoesNotHaveAttributeException
- Alle implementierten Schnittstellen:
Serializable
A
ArgumentDoesNotHaveAttributeException
is a
InvalidArgumentException
that is supposed to be thrown when a given
argument does undesirably not have a specific attribute.- Version:
- 2019-01-31
- Autor:
- Silvan Wyss
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungforArgumentAndAttributeName
(Object argument, String attributeName) forArgumentAndAttributeType
(Object argument, Class<?> attributeType) forArgumentNameAndArgumentAndAttributeName
(String argumentName, Object argument, String attributeName) forArgumentNameAndArgumentAndAttributeType
(String argumentName, Object argument, Class<?> attributeType) Von Klasse geerbte Methoden ch.nolix.core.errorcontrol.invalidargumentexception.InvalidArgumentException
forArgument, forArgumentAndErrorPredicate, forArgumentAndErrorPredicateAndCause, forArgumentNameAndArgument, forArgumentNameAndArgumentAndErrorPredicate, getArgumentName, getErrorPredicate, getStoredArgument
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methodendetails
-
forArgumentAndAttributeName
public static ArgumentDoesNotHaveAttributeException forArgumentAndAttributeName(Object argument, String attributeName) - Parameter:
argument
-attributeName
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argument and attributeName. - Löst aus:
IllegalArgumentException
- if the given attributeName is null.IllegalArgumentException
- if the given attributeName is blank.
-
forArgumentAndAttributeType
public static ArgumentDoesNotHaveAttributeException forArgumentAndAttributeType(Object argument, Class<?> attributeType) - Parameter:
argument
-attributeType
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argument and attributeType. - Löst aus:
IllegalArgumentException
- if the given attributeType is null.
-
forArgumentNameAndArgumentAndAttributeName
public static ArgumentDoesNotHaveAttributeException forArgumentNameAndArgumentAndAttributeName(String argumentName, Object argument, String attributeName) - Parameter:
argumentName
-argument
-attributeName
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argumentName, argument and attributeName. - Löst aus:
IllegalArgumentException
- if the given argumentName is null.IllegalArgumentException
- if the given argumentName is blank.IllegalArgumentException
- if the given attributeName is null.IllegalArgumentException
- if the given attributeName is blank.
-
forArgumentNameAndArgumentAndAttributeType
public static ArgumentDoesNotHaveAttributeException forArgumentNameAndArgumentAndAttributeType(String argumentName, Object argument, Class<?> attributeType) - Parameter:
argumentName
-argument
-attributeType
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argumentName, argument and attributeType. - Löst aus:
IllegalArgumentException
- if the given argumentName is null.IllegalArgumentException
- if the given argumentName is blank.IllegalArgumentException
- if the given attributeType is null.
-
toNoSuchElementException
- Gibt zurück:
- a new
NoSuchElementException
representation of the currentArgumentDoesNotHaveAttributeException
.
-