Class DomaIllegalArgumentException

All Implemented Interfaces:
Serializable

public class DomaIllegalArgumentException extends DomaException
Thrown to indicate that an argument does not meet the preconditions required by a method.

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 illegal argument
    • description

      protected final String description
      the detail message
  • Constructor Details

    • DomaIllegalArgumentException

      public DomaIllegalArgumentException(String parameterName, String description)
      Constructs an instance.
      Parameters:
      parameterName - the parameter name
      description - the detail message
  • Method Details

    • getParameterName

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

      public String getDescription()
      Returns the detail message.
      Returns:
      the detail message