Try our conversational search powered by Generative AI!

Class OutOfRangePropertyValueException

Exception throw by PropertyData derived objects when assigned a out of range value.

Inheritance
System.Object
System.Exception
OutOfRangePropertyValueException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class OutOfRangePropertyValueException : EPiServerException, ISerializable, _Exception, IPropertyException
Remarks

Will translate error message to current language, default message is: "You must enter a value between {minval} and {maxval} for "{name}"".

Constructors

OutOfRangePropertyValueException()

Initializes the new instance of OutOfRangePropertyValueException

Declaration
public OutOfRangePropertyValueException()

OutOfRangePropertyValueException(SerializationInfo, StreamingContext)

Initializes a new instance of the OutOfRangePropertyValueException class with serialized data.

Declaration
protected OutOfRangePropertyValueException(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.

OutOfRangePropertyValueException(String)

Initializes the new instance of OutOfRangePropertyValueException

Declaration
public OutOfRangePropertyValueException(string message)
Parameters
Type Name Description
System.String message

The error message that explains the reason for the exception.

OutOfRangePropertyValueException(String, Exception)

Initializes the new instance of OutOfRangePropertyValueException

Declaration
public OutOfRangePropertyValueException(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.

OutOfRangePropertyValueException(String, String, String)

Initializes a new instance with a specified name, minvalue and maxvalue

Declaration
public OutOfRangePropertyValueException(string name, string minVal, string maxVal)
Parameters
Type Name Description
System.String name

Source property name/type of exception

System.String minVal

Minimum value for range

System.String maxVal

Maximum value for range

OutOfRangePropertyValueException(String, String, String, Exception)

Initializes a new instance with a specified name, minvalue, maxvalue and inner exception that was the cause of the exception.

Declaration
public OutOfRangePropertyValueException(string name, string minVal, string maxVal, Exception innerException)
Parameters
Type Name Description
System.String name

Source property name/type of exception

System.String minVal

Minimum value for range

System.String maxVal

Maximum value for range

System.Exception innerException

The inner exception that was the cause of 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.

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

Extension Methods