Exception thrown by PropertyData derived objects when assigned a null value where value is required.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
[SerializableAttribute]
public class RequiredPropertyValueException : EPiServerException, 
	IPropertyException

Remarks

Will translate error message to current language, default message is: "{propertyName}" cannot be empty.

Exception is thrown by Clear()()() when trying to null a property where a value is required.

InvalidPropertyValueException and RequiredPropertyValueException are the two main exceptions that EPiServer.UI.WebControls.PropertyDataForm catches to display friendly and language dependent error messages.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    System..::.ApplicationException
      EPiServer.Core..::.EPiServerException
        EPiServer.Core..::.RequiredPropertyValueException

See Also