Class MissingRequiredPropertiesException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MissingRequiredPropertiesException
    extends java.lang.RuntimeException
    Thrown by ObjectBuilder.build() when one of the required properties 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[] getPropertiesName()  
      • 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

      • MissingRequiredPropertiesException

        public MissingRequiredPropertiesException​(java.lang.Object obj,
                                                  java.lang.String... properties)
    • Method Detail

      • getObjectClass

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

        public java.lang.String[] getPropertiesName()