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
KonstruktorenModifiziererKonstruktorBeschreibungprotectedInvalidArgumentException(Object argument) Creates a newInvalidArgumentExceptionfor the given argument.protectedInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto) Creates a newInvalidArgumentExceptionfor the given argument and the argumentName of the given argumentNameDto.protectedInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto) Creates a newInvalidArgumentExceptionfor the given argument, argumentName and errorPredicate.protectedInvalidArgumentException(Object argument, ArgumentNameDto argumentNameDto, ErrorPredicateDto errorPredicateDto, CauseDto causeDto) Creates a newInvalidArgumentExceptionfor the given argument, argumentName of the given argumentNameDto, errorPredicate of the given errorPredicateDto and cause of the given causeDto.protectedInvalidArgumentException(Object argument, ErrorPredicateDto errorPredicateDto) Creates a newInvalidArgumentExceptionfor the given argument and the errorPredicate of the given errorPredicateDto. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic InvalidArgumentExceptionforArgument(Object argument) static InvalidArgumentExceptionforArgumentAndArgumentName(Object argument, String argumentName) static InvalidArgumentExceptionforArgumentAndArgumentNameAndErrorPredicate(Object argument, String argumentName, String errorPredicate) static InvalidArgumentExceptionforArgumentAndErrorPredicate(Object argument, String errorPredicate) 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
-
Konstruktordetails
-
InvalidArgumentException
Creates a newInvalidArgumentExceptionfor the given argument.- Parameter:
argument- - Can be null.
-
InvalidArgumentException
Creates a newInvalidArgumentExceptionfor 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 newInvalidArgumentExceptionfor 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 newInvalidArgumentExceptionfor 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 newInvalidArgumentExceptionfor 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
InvalidArgumentExceptionfor the given argument.
-
forArgumentAndErrorPredicate
public static InvalidArgumentException forArgumentAndErrorPredicate(Object argument, String errorPredicate) - Parameter:
argument- - Can be null.errorPredicate-- Gibt zurück:
- a new
InvalidArgumentExceptionfor 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
InvalidArgumentExceptionfor 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
InvalidArgumentExceptionfor 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.
-