Class PropertyException

  • All Implemented Interfaces:
    Serializable, org.forgerock.i18n.LocalizableException

    public final class PropertyException
    extends RuntimeException
    implements org.forgerock.i18n.LocalizableException
    Exceptions thrown as a result of errors that occurred when decoding and modifying property values.
    See Also:
    Serialized Form
    • Method Detail

      • defaultBehaviorException

        public static PropertyException defaultBehaviorException​(PropertyDefinition<?> pd,
                                                                 Throwable cause)
        Creates a new default behavior exception with a cause.
        Parameters:
        pd - The property definition whose default values could not be determined.
        cause - The exception that prevented the default values from being determined.
        Returns:
        A new default behavior exception with a cause.
      • illegalPropertyValueException

        public static PropertyException illegalPropertyValueException​(PropertyDefinition<?> pd,
                                                                      Object value)
        Creates a new illegal property value exception.
        Parameters:
        pd - The property definition.
        value - The illegal property value.
        Returns:
        A new illegal property value exception.
      • illegalPropertyValueException

        public static PropertyException illegalPropertyValueException​(PropertyDefinition<?> pd,
                                                                      Object value,
                                                                      Throwable cause)
        Creates a new illegal property value exception.
        Parameters:
        pd - The property definition.
        value - The illegal property value.
        cause - The cause.
        Returns:
        A new illegal property value exception.
      • propertyIsMandatoryException

        public static PropertyException propertyIsMandatoryException​(PropertyDefinition<?> pd)
        Creates a new property is mandatory exception.
        Parameters:
        pd - The property definition.
        Returns:
        A new property is mandatory exception.
      • propertyIsReadOnlyException

        public static PropertyException propertyIsReadOnlyException​(PropertyDefinition<?> pd)
        Creates a new property is read-only exception.
        Parameters:
        pd - The property definition.
        Returns:
        A new property is read-only exception.
      • propertyIsSingleValuedException

        public static PropertyException propertyIsSingleValuedException​(PropertyDefinition<?> pd)
        Creates a new property is single valued exception.
        Parameters:
        pd - The property definition.
        Returns:
        A new property is single valued exception.
      • unknownPropertyDefinitionException

        public static PropertyException unknownPropertyDefinitionException​(PropertyDefinition<?> pd)
        Creates a new unknown property definition exception.
        Parameters:
        pd - The unknown property definition.
        Returns:
        A new unknown property definition exception.
      • getMessageObject

        public org.forgerock.i18n.LocalizableMessage getMessageObject()
        Specified by:
        getMessageObject in interface org.forgerock.i18n.LocalizableException
      • getPropertyDefinition

        public final PropertyDefinition<?> getPropertyDefinition()
        Returns the property definition associated with the property that caused the exception.
        Returns:
        The property definition associated with the property that caused the exception.