Table of Contents

Class InvalidValueException

Namespace
XENBIT.ResQueServe.Core.Exceptions
Assembly
RQS.Core.dll

Represents an exception thrown when a property has an invalid value.

public class InvalidValueException : ResQueServeException, ISerializable
Inheritance
InvalidValueException
Implements
Inherited Members

Constructors

InvalidValueException(string, object, Exception, ProblemInformation)

Initializes a new instance of the InvalidValueException class with the property name, provided value, inner exception, and problem information.

public InvalidValueException(string propertyName, object providedValue, Exception innerException, ProblemInformation problemInformation)

Parameters

propertyName string

The name of the property with the invalid value.

providedValue object

The invalid value provided for the property.

innerException Exception

The inner exception that caused this exception.

problemInformation ProblemInformation

Details about the problem that caused the exception.

InvalidValueException(string, object, ProblemInformation)

Initializes a new instance of the InvalidValueException class with the property name, provided value, and problem information.

public InvalidValueException(string propertyName, object providedValue, ProblemInformation problemInformation)

Parameters

propertyName string

The name of the property with the invalid value.

providedValue object

The invalid value provided for the property.

problemInformation ProblemInformation

Details about the problem that caused the exception.

Properties

InvalidProperty

Gets the name of the property with the invalid value.

public string InvalidProperty { get; }

Property Value

string

ProvidedValue

Gets the invalid value provided for the property.

public object ProvidedValue { get; }

Property Value

object

Methods

HandleDispatcherExceptionOnFrontend(dynamic, string?)

Handles the dispatcher exception on the frontend by modifying the provided view bag.

public override void HandleDispatcherExceptionOnFrontend(dynamic viewBag, string? prefix = null)

Parameters

viewBag dynamic

The dynamic view bag used to display error notifications.

prefix string

An optional prefix for error messages.