Class ClosedArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.ClosedArgumentException
- All Implemented Interfaces:
Serializable
A
ClosedArgumentException is a
AbstractInvalidArgumentException that is supposed to be thrown when
an argument is undesirably closed.- Author:
- Silvan Wyss
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClosedArgumentExceptionforArgument(Object argument) static ClosedArgumentExceptionforArgumentAndArgumentName(Object argument, String argumentName) 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
-
forArgument
- Parameters:
argument-- Returns:
- a new
ClosedArgumentExceptionfor the given argument.
-
forArgumentAndArgumentName
public static ClosedArgumentException forArgumentAndArgumentName(Object argument, String argumentName) - Parameters:
argument-argumentName-- Returns:
- a new
ClosedArgumentExceptionfor the given argument and argumentName. - Throws:
RuntimeException- if the given argumentName is null or blank.
-