Class ArgumentDoesNotSupportMethodException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.AbstractInvalidArgumentException
ch.nolix.baseapi.errorcontrol.invalidargumentexception.ArgumentDoesNotSupportMethodException
- All Implemented Interfaces:
Serializable
A
ArgumentDoesNotSupportMethodException is a
AbstractInvalidArgumentException that is supposed to be thrown when a
given argument does undesirably not support an invoked method.- 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
-
forArgumentAndMethodName
public static ArgumentDoesNotSupportMethodException forArgumentAndMethodName(Object argument, String methodName) - Parameters:
argument- - Can be null.methodName-- Returns:
- new
ArgumentDoesNotSupportMethodExceptionfor the given argument and methodName. - Throws:
RuntimeException- if the given methodName is null or blank.
-