Class ExtraPropertyException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ExtraPropertyException
    extends java.lang.RuntimeException
    Indicates one or more properties are not used either in a config.yaml configuration file or in the request json.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtraPropertyException​(java.lang.String message, java.util.Collection<java.lang.String> extraProperties, 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.Collection<java.lang.String> getExtraProperties()  
      • 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

      • ExtraPropertyException

        public ExtraPropertyException​(java.lang.String message,
                                      java.util.Collection<java.lang.String> extraProperties,
                                      java.util.Set<java.lang.String> attributeNames)
        Constructor.
        Parameters:
        message - the error message. A textual description of the extra properties. List of names will be appended at the end
        extraProperties - the properties that are extra
        attributeNames - all the allowed attribute names.
    • Method Detail

      • getExtraProperties

        public java.util.Collection<java.lang.String> getExtraProperties()
      • getAttributeNames

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