NullArgumentException (FreeMarker 2.3.35 API)
Description: declaration: package: freemarker.template.utility, class: NullArgumentException

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` was `null`.

Since:
  2.3.20
See Also:
  Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NullArgumentException()`
  `NullArgumentException​(String argumentName)`
  `NullArgumentException​(String argumentName, String details)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `check​(Object argumentValue)`
  `static void`
  `check​(String argumentName, Object argumentValue)`
  Convenience method to protect against a `null` argument.

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### NullArgumentException

    public NullArgumentException()

  - ### NullArgumentException

    public NullArgumentException​(String argumentName)

  - ### NullArgumentException

    public NullArgumentException​(String argumentName, String details)

- ## Method Details

  - ### check

    public static void check​(String argumentName, Object argumentValue)
    Convenience method to protect against a `null` argument.

  - ### check

    public static void check​(Object argumentValue)
    Since:
      2.3.22