Klasse InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.core.errorcontrol.invalidargumentexception.InvalidArgumentException
- Alle implementierten Schnittstellen:
Serializable
- Autor:
- Silvan Wyss
- Siehe auch:
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic InvalidArgumentExceptionforArgument(Object argument) static InvalidArgumentExceptionforArgumentAndArgumentName(Object argument, String argumentName) static InvalidArgumentExceptionforArgumentAndArgumentNameAndErrorPredicate(Object argument, String argumentName, String errorPredicate) static InvalidArgumentExceptionforArgumentAndErrorPredicate(Object argument, String errorPredicate) Von Klasse geerbte Methoden AbstractInvalidArgumentException
getArgumentName, getErrorPredicate, getStoredArgumentVon Klasse geerbte Methoden Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methodendetails
-
forArgument
- Parameter:
argument- - Can be null.- Gibt zurück:
- a new
InvalidArgumentExceptionfor the given argument.
-
forArgumentAndErrorPredicate
public static InvalidArgumentException forArgumentAndErrorPredicate(Object argument, String errorPredicate) - Parameter:
argument- - Can be null.errorPredicate-- Gibt zurück:
- a new
InvalidArgumentExceptionfor the given argument and errorPredicate. - Löst aus:
RuntimeException- if the given errorPredicate is null or blank or ends with a dot.
-
forArgumentAndArgumentName
public static InvalidArgumentException forArgumentAndArgumentName(Object argument, String argumentName) - Parameter:
argument- - Can be null.argumentName-- Gibt zurück:
- a new
InvalidArgumentExceptionfor the given argument and argumentName. - Löst aus:
RuntimeException- if the given argumentName is null or blank.
-
forArgumentAndArgumentNameAndErrorPredicate
public static InvalidArgumentException forArgumentAndArgumentNameAndErrorPredicate(Object argument, String argumentName, String errorPredicate) - Parameter:
argument-argumentName-errorPredicate-- Gibt zurück:
- a new
InvalidArgumentExceptionfor the given argument, argumentName and errorPredicate. - Löst aus:
RuntimeException- if the given argumentName is null or blank.RuntimeException- if the given errorPredicate is null or blank or ends with a dot.
-