Klasse SmallerArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.core.errorcontrol.invalidargumentexception.SmallerArgumentException
- Alle implementierten Schnittstellen:
Serializable
A
SmallerArgumentException
is a
AbstractInvalidArgumentException
that is supposed to be thrown when a
given argument is undesirably smaller than a given min.- Version:
- 2016-03-01
- Autor:
- Silvan Wyss
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic SmallerArgumentException
forArgumentNameAndArgumentAndLimit
(double argument, String argumentName, double min) static SmallerArgumentException
forArgumentNameAndArgumentAndLimit
(BigDecimal argument, String argumentName, BigDecimal min) 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
-
forArgumentNameAndArgumentAndLimit
public static SmallerArgumentException forArgumentNameAndArgumentAndLimit(BigDecimal argument, String argumentName, BigDecimal min) - Parameter:
argument
- - Can be null.argumentName
-min
-- Gibt zurück:
- a new
SmallerArgumentException
for the given argument, argumentName and mint. - Löst aus:
RuntimeException
- if the given argumentName is null or blank.RuntimeException
- if the given min is null.
-
forArgumentNameAndArgumentAndLimit
public static SmallerArgumentException forArgumentNameAndArgumentAndLimit(double argument, String argumentName, double min) - Parameter:
argument
-argumentName
-min
-- Gibt zurück:
- a new
SmallerArgumentException
for the given argument, argumentName and mint. - Löst aus:
RuntimeException
- if the given argumentName is null or blank.
-