Klasse UnrepresentingArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.core.errorcontrol.invalidargumentexception.UnrepresentingArgumentException
- Alle implementierten Schnittstellen:
Serializable
A
UnrepresentingArgumentException
is a
AbstractInvalidArgumentException
that is supposed to be thrown when a
given argument does undesirable not represent an object of a given type.- Version:
- 2017-03-05
- Autor:
- Silvan Wyss
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungforArgumentAndArgumentNameAndType
(Object argument, String argumentName, Class<?> type) forArgumentAndType
(Object argument, Class<?> type) 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
-
forArgumentAndArgumentNameAndType
public static UnrepresentingArgumentException forArgumentAndArgumentNameAndType(Object argument, String argumentName, Class<?> type) - Parameter:
argument
-argumentName
-type
-- Gibt zurück:
- a new
UnrepresentingArgumentException
for the given argument, argumentName and type. - Löst aus:
RuntimeException
- if the given argumentName is null or blank.RuntimeException
- if the given type is null.
-
forArgumentAndType
- Parameter:
argument
-type
-- Gibt zurück:
- a new
UnrepresentingArgumentException
for the given argument and type. - Löst aus:
RuntimeException
- if the given type is null.
-