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