Class RequiredArgumentException

All Implemented Interfaces:
Serializable

public class RequiredArgumentException extends IllegalArgumentException
Exception for parameters that are required.

This is primarily intended for use when populating Kotlin form beans with non-nullable properties and failing early rather than validate the entire bean.

See Also:
  • Constructor Details

    • RequiredArgumentException

      public RequiredArgumentException(String message, String property)
      Construct with a message and property.
    • RequiredArgumentException

      public RequiredArgumentException(Exception e)
      Construct with an exception.
    • RequiredArgumentException

      public RequiredArgumentException(String message, Exception e)
      Construct with a message and exception.
  • Method Details

    • getProperty

      public String getProperty()
      Return the name of the property that is required.
    • setProperty

      public void setProperty(String property)
      Set the name of the required property.