Class MissingRequiredPropertyException

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

public class MissingRequiredPropertyException
extends java.lang.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:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    MissingRequiredPropertyException​(java.lang.Object obj, java.lang.String property)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Class<?> getObjectClass()
    The class where the missing property was found
    java.lang.String getPropertyName()  

    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

    • MissingRequiredPropertyException

      public MissingRequiredPropertyException​(java.lang.Object obj, java.lang.String property)
  • Method Details

    • getObjectClass

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

      public java.lang.String getPropertyName()