Class ArgumentIsNullException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.ArgumentIsNullException
- All Implemented Interfaces:
Serializable
A
ArgumentIsNullException is a
AbstractInvalidArgumentException that is supposed to be thrown when a
given argument is undesirably null.- Author:
- Silvan Wyss
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentIsNullExceptionforArgumentName(String argumentName) static ArgumentIsNullExceptionforArgumentType(Class<?> argumentType) Methods inherited from class AbstractInvalidArgumentException
getArgumentName, getErrorPredicate, getStoredArgumentMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
forArgumentName
- Parameters:
argumentName-- Returns:
- a new
ArgumentIsNullExceptionfor the given argumentName. - Throws:
RuntimeException- if the given argumentName is null or blank.
-
forArgumentType
- Parameters:
argumentType-- Returns:
- a new
ArgumentIsNullExceptionfor the given argumentType. - Throws:
RuntimeException- if the given argumentType is null.
-