Class MissingPropertyException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class MissingPropertyException
    extends java.lang.RuntimeException
    Indicates one or more properties are missing either from a config.yaml configuration file or from request json.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MissingPropertyException​(java.lang.String message, java.util.Map<java.lang.String,​java.lang.Class<?>> missingProperties, java.util.Set<java.lang.String> attributeNames)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getAttributeNames()  
      java.util.Map<java.lang.String,​java.lang.Class<?>> getMissingProperties()  
      • 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

      • MissingPropertyException

        public MissingPropertyException​(java.lang.String message,
                                        java.util.Map<java.lang.String,​java.lang.Class<?>> missingProperties,
                                        java.util.Set<java.lang.String> attributeNames)
        Constructor.
        Parameters:
        message - the error message. A textual description of the missing properties (type and name) will be appended at the end.
        missingProperties - the properties that are missing
        attributeNames - all the allowed attribute names.
    • Method Detail

      • getMissingProperties

        public java.util.Map<java.lang.String,​java.lang.Class<?>> getMissingProperties()
      • getAttributeNames

        public java.util.Set<java.lang.String> getAttributeNames()