Class InvalidLongstringValueException
Exception throw by PropertyData derived objects when assigned a invalid value.
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class InvalidLongstringValueException : EPiServerException, ISerializable, _Exception, IPropertyException
Remarks
Will translate error message to current language, default message is: "{actualValue}" is not a valid value for "{name}".
InvalidPropertyValueException and RequiredPropertyValueException are the two main exceptions that EPiServer.UI.WebControls.PropertyDataForm catches to display friendly and language dependent error messages.
Constructors
InvalidLongstringValueException()
Initializes a new instance
Declaration
public InvalidLongstringValueException()
InvalidLongstringValueException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidLongstringValueException class with serialized data.
Declaration
protected InvalidLongstringValueException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized object data. |
System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. |
InvalidLongstringValueException(String)
Initializes a new instance
Declaration
public InvalidLongstringValueException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Message |
InvalidLongstringValueException(String, Exception)
Initializes the new instance of InvalidLongstringValueException
Declaration
public InvalidLongstringValueException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
InvalidLongstringValueException(String, String)
Initializes a new instance with a specified name and a actual value
Declaration
public InvalidLongstringValueException(string name, string actualValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Source property name/type of exception |
System.String | actualValue | The value that was assigned |
InvalidLongstringValueException(String, String, Exception)
Initializes a new instance with a specified name, actual value and inner exception that was the cause of the exception.
Declaration
public InvalidLongstringValueException(string name, string actualValue, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Source property name/type of exception |
System.String | actualValue | The value that was assigned |
System.Exception | innerException | The inner exception that was the cause of the exception |
Properties
ActualValue
String representation of the value that caused the exception
Declaration
public string ActualValue { get; set; }
Property Value
Type | Description |
---|---|
System.String | Value that caused the exception |
Methods
ChangeDisplayName(String)
Tries to set the error message to a translated exception message.
Declaration
public void ChangeDisplayName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |