Class DomaNullPointerException

All Implemented Interfaces:
Serializable

public class DomaNullPointerException extends DomaException
Thrown to indicate that an argument is null and null values are not allowed for this parameter.

This exception class makes it easy to distinguish between issues caused by Doma's specifications and actual bugs in the Doma framework.

See Also:
  • Field Details

    • parameterName

      protected final String parameterName
      the parameter name that corresponds to the argument
  • Constructor Details

    • DomaNullPointerException

      public DomaNullPointerException(String parameterName)
      Constructs an instance.
      Parameters:
      parameterName - the parameter name that corresponds to the argument
  • Method Details

    • getParameterName

      public String getParameterName()
      Returns the parameter name that corresponds to the argument.
      Returns:
      the parameter name