Package freemarker.template.utility
Class NullArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- freemarker.template.utility.NullArgumentException
-
- All Implemented Interfaces:
Serializable
public class NullArgumentException extends IllegalArgumentException
Indicates that an argument that must be non-null
wasnull
.- Since:
- 2.3.20
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullArgumentException(String argumentName)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
check(Object argumentValue)
static void
check(String argumentName, Object argumentValue)
Convenience method to protect against anull
argument.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NullArgumentException
public NullArgumentException(String argumentName)
-
-