Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • MissingRequiredPropertyException

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

      • getObjectClass

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

        public java.lang.String getPropertyName()