Klasse EqualArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.core.errorcontrol.invalidargumentexception.EqualArgumentException
- Alle implementierten Schnittstellen:
Serializable
A
EqualArgumentException is a
AbstractInvalidArgumentException that is supposed to be thrown when a
given argument equals undesirably a given value.- Version:
- 2017-10-14
- Autor:
- Silvan Wyss
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic EqualArgumentExceptionforArgumentAndArgumentNameAndEqualValue(double argument, String argumentName, double equalValue) static EqualArgumentExceptionforArgumentAndArgumentNameAndEqualValue(long argument, String argumentName, long equalValue) static EqualArgumentExceptionforArgumentAndEqualValue(Object argument, Object equalValue) Von Klasse geerbte Methoden ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
getArgumentName, getErrorPredicate, getStoredArgumentVon Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methodendetails
-
forArgumentAndArgumentNameAndEqualValue
public static EqualArgumentException forArgumentAndArgumentNameAndEqualValue(double argument, String argumentName, double equalValue) - Parameter:
argument- - Can be null.argumentName-equalValue- - Can be null.- Gibt zurück:
- a new
EqualArgumentExceptionfor the given argument, argumentName and equalValue. - Löst aus:
RuntimeException- if the given argumentName is null or blank.
-
forArgumentAndArgumentNameAndEqualValue
public static EqualArgumentException forArgumentAndArgumentNameAndEqualValue(long argument, String argumentName, long equalValue) - Parameter:
argument- - Can be null.argumentName-equalValue- - Can be null.- Gibt zurück:
- a new
EqualArgumentExceptionfor the given argument, argumentName and equalValue. - Löst aus:
RuntimeException- if the given argumentName is null or blank.
-
forArgumentAndEqualValue
- Parameter:
argument- - Can be null.equalValue- - Can be null.- Gibt zurück:
- a new
EqualArgumentExceptionfor the given argument and equalValue.
-