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
- Version:
- 2016-12-01
- Autor:
- Silvan Wyss
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
InvalidArgumentException
(Object argument) Creates a newInvalidArgumentException
for the given argument.protected
InvalidArgumentException
(Object argument, ArgumentNameDto argumentNameDto) Creates a newInvalidArgumentException
for the given argument and the argumentName of the given argumentNameDto.protected
InvalidArgumentException
(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto) Creates a newInvalidArgumentException
for the given argument, argumentName and errorPredicate.protected
InvalidArgumentException
(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto, CauseDto causeDto) Creates a newInvalidArgumentException
for the given argument, argumentName of the given argumentNameDto, errorPredicate of the given errorPredicateDto and cause of the given causeDto.protected
InvalidArgumentException
(Object argument, ErrorPredicateDto errorPredicateDto) Creates a newInvalidArgumentException
for the given argument and the errorPredicate of the given errorPredicateDto. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic InvalidArgumentException
forArgument
(Object argument) static InvalidArgumentException
forArgumentAndArgumentName
(Object argument, String argumentName) static InvalidArgumentException
forArgumentAndArgumentNameAndErrorPredicate
(Object argument, String argumentName, String errorPredicate) static InvalidArgumentException
forArgumentAndErrorPredicate
(Object argument, String errorPredicate) 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
-
Konstruktordetails
-
InvalidArgumentException
Creates a newInvalidArgumentException
for the given argument.- Parameter:
argument
- - Can be null.
-
InvalidArgumentException
Creates a newInvalidArgumentException
for the given argument and the argumentName of the given argumentNameDto.- Parameter:
argument
- - Can be null.argumentNameDto
-- Löst aus:
RuntimeException
- if the given argumentNameDto is null.RuntimeException
- if the argumentName of the given argumentNameDto is null or blank.
-
InvalidArgumentException
Creates a newInvalidArgumentException
for the given argument and the errorPredicate of the given errorPredicateDto.- Parameter:
argument
- - Can be null.errorPredicateDto
-- Löst aus:
RuntimeException
- if the given errorPredicateDto is null.RuntimeException
- if the errorPredicate of the given errorPredicateDto is null or blank.
-
InvalidArgumentException
protected InvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto) Creates a newInvalidArgumentException
for the given argument, argumentName and errorPredicate.- Parameter:
argument
-argumentNameDto
-errorPredicateDto
-- Löst aus:
RuntimeException
- if the given argumentNameDto is null.RuntimeException
- if the argumentName of the given argumentNameDto is null or blank.RuntimeException
- if the given errorPredicateDto is null.RuntimeException
- if the errorPredicate of the given errorPredicateDto is null or blank.
-
InvalidArgumentException
protected InvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto, CauseDto causeDto) Creates a newInvalidArgumentException
for the given argument, argumentName of the given argumentNameDto, errorPredicate of the given errorPredicateDto and cause of the given causeDto.- Parameter:
argument
- - Can be null.argumentNameDto
-errorPredicateDto
-causeDto
-- Löst aus:
RuntimeException
- if the given argumentNameDto is null.RuntimeException
- if the argumentName of the given argumentNameDto is null or blank.RuntimeException
- if the given errorPredicateDto is null.RuntimeException
- if the errorPredicate of the given errorPredicateDto is null or blank.RuntimeException
- if the given causeDto is null.RuntimeException
- if the cause of the given causeDto is null.
-
-
Methodendetails
-
forArgument
- Parameter:
argument
- - Can be null.- Gibt zurück:
- a new
InvalidArgumentException
for the given argument.
-
forArgumentAndErrorPredicate
public static InvalidArgumentException forArgumentAndErrorPredicate(Object argument, String errorPredicate) - Parameter:
argument
- - Can be null.errorPredicate
-- Gibt zurück:
- a new
InvalidArgumentException
for 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
InvalidArgumentException
for 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
InvalidArgumentException
for 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.
-