Class MissingRequiredPropertyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
co.elastic.clients.util.MissingRequiredPropertyException
All Implemented Interfaces:
Serializable

public class MissingRequiredPropertyException extends RuntimeException
Thrown by ObjectBuilder.build() when a required property is missing.

If you think this is an error and that the reported property is actually optional, a workaround is available in ApiTypeHelper to disable checks. Use with caution.

See Also:
  • Constructor Details

    • MissingRequiredPropertyException

      public MissingRequiredPropertyException(Object obj, String property)
  • Method Details

    • getObjectClass

      public Class<?> getObjectClass()
      The class where the missing property was found
    • getPropertyName

      public String getPropertyName()