Class ArgumentContainsElementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.ArgumentContainsElementException
- All Implemented Interfaces:
Serializable
A
ArgumentContainsElementException is a
AbstractInvalidArgumentException that is supposed to be thrown when a
given argument contains undesirably a given element.- Author:
- Silvan Wyss
- See Also:
-
Method Summary
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
-
forArgumentAndElement
public static ArgumentContainsElementException forArgumentAndElement(Object argument, Object element) - Parameters:
argument- - Can be null.element- - Can be null.- Returns:
- a new
ArgumentContainsElementExceptionfor the given argument and element.
-