Class ArgumentHasAttributeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.ArgumentHasAttributeException
- All Implemented Interfaces:
Serializable
A
ArgumentHasAttributeException is a
AbstractInvalidArgumentException that is supposed to be thrown when a
given argument has undesirably a given attribute.- Author:
- Silvan Wyss
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionforArgumentAndAttributeName(Object argument, String attributeName) 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
-
forArgumentAndAttributeName
public static ArgumentHasAttributeException forArgumentAndAttributeName(Object argument, String attributeName) - Parameters:
argument-attributeName-- Returns:
- a new
ArgumentHasAttributeExceptionfor the given argument and attributeName. - Throws:
RuntimeException- if the given attributeName is null or blank.
-