Klasse ArgumentIsInRangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.core.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.core.errorcontrol.invalidargumentexception.ArgumentIsInRangeException
- Alle implementierten Schnittstellen:
Serializable
A
ArgumentIsInRangeException is a
AbstractInvalidArgumentException that is supposed to be thrown when a
given value is undesirably in a given range.- Autor:
- Silvan Wyss
- Siehe auch:
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic ArgumentIsInRangeExceptionforArgumentAndRangeWithMinAndMax(double argument, double min, double max) static ArgumentIsInRangeExceptionforArgumentAndRangeWithMinAndMax(long argument, long min, long max) static ArgumentIsInRangeExceptionforArgumentNameAndArgumentAndRangeWithMinAndMax(double argument, String argumentName, double min, double max) static ArgumentIsInRangeExceptionforArgumentNameAndArgumentAndRangeWithMinAndMax(String argumentName, long argument, long min, long max) 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
-
forArgumentAndRangeWithMinAndMax
public static ArgumentIsInRangeException forArgumentAndRangeWithMinAndMax(double argument, double min, double max) - Parameter:
argument-min-max-- Gibt zurück:
- a new
ArgumentIsInRangeExceptionfor the given argument and range defined by the given min and max.
-
forArgumentAndRangeWithMinAndMax
public static ArgumentIsInRangeException forArgumentAndRangeWithMinAndMax(long argument, long min, long max) - Parameter:
argument-min-max-- Gibt zurück:
- a new
ArgumentIsInRangeExceptionfor the given argument and range defined by the given min and max.
-
forArgumentNameAndArgumentAndRangeWithMinAndMax
public static ArgumentIsInRangeException forArgumentNameAndArgumentAndRangeWithMinAndMax(double argument, String argumentName, double min, double max) - Parameter:
argument-argumentName-min-max-- Gibt zurück:
- a new
ArgumentIsInRangeExceptionfor the given argument, argumentName and range defined by the given min and max. - Löst aus:
RuntimeException- if the given argumentName is null or blank.
-
forArgumentNameAndArgumentAndRangeWithMinAndMax
public static ArgumentIsInRangeException forArgumentNameAndArgumentAndRangeWithMinAndMax(String argumentName, long argument, long min, long max) - Parameter:
argumentName-argument-min-max-- Gibt zurück:
- a new
ArgumentIsInRangeExceptionfor the given argument, argumentName and range defined by the given min and max. - Löst aus:
RuntimeException- if the given argumentName is null or blank.
-