Klasse ArgumentDoesNotHaveAttributeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.core.errorcontrol.invalidargumentexception.ArgumentDoesNotHaveAttributeException
- Alle implementierten Schnittstellen:
Serializable
A
ArgumentDoesNotHaveAttributeException
is a
AbstractInvalidArgumentException
that is supposed to be thrown when a
given argument does undesirably not have a given attribute.- Version:
- 2019-01-31
- Autor:
- Silvan Wyss
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungforArgumentAndArgumentNameAndAttributeName
(Object argument, String argumentName, String attributeName) forArgumentAndArgumentNameAndAttributeType
(String argumentName, Object argument, Class<?> attributeType) forArgumentAndAttributeName
(Object argument, String attributeName) forArgumentAndAttributeType
(Object argument, Class<?> attributeType) Von Klasse geerbte Methoden ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
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
- - Can be null.attributeName
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argument and attributeName. - Löst aus:
RuntimeException
- if the given attributeName is null or blank.
-
forArgumentAndAttributeType
public static ArgumentDoesNotHaveAttributeException forArgumentAndAttributeType(Object argument, Class<?> attributeType) - Parameter:
argument
- - Can be null.attributeType
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argument and attributeType. - Löst aus:
RuntimeException
- if the given attributeType is null.
-
forArgumentAndArgumentNameAndAttributeName
public static ArgumentDoesNotHaveAttributeException forArgumentAndArgumentNameAndAttributeName(Object argument, String argumentName, String attributeName) - Parameter:
argument
- - Can be null.argumentName
-attributeName
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argument, argumentName and attributeName. - Löst aus:
RuntimeException
- if the given argumentName is null or blank.RuntimeException
- if the given attributeName is null or blank.
-
forArgumentAndArgumentNameAndAttributeType
public static ArgumentDoesNotHaveAttributeException forArgumentAndArgumentNameAndAttributeType(String argumentName, Object argument, Class<?> attributeType) - Parameter:
argumentName
-argument
- - Can be null.attributeType
-- Gibt zurück:
- a new
ArgumentDoesNotHaveAttributeException
for the given argument, argumentName and attributeType. - Löst aus:
RuntimeException
- if the given argumentName is null or blank.RuntimeException
- if the given attributeType is null.
-
toNoSuchElementException
- Gibt zurück:
- a new
NoSuchElementException
representation of the currentArgumentDoesNotHaveAttributeException
.
-