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
propertyNamestringThe name of the property with the invalid value.
providedValueobjectThe invalid value provided for the property.
innerExceptionExceptionThe inner exception that caused this exception.
problemInformationProblemInformationDetails 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
propertyNamestringThe name of the property with the invalid value.
providedValueobjectThe invalid value provided for the property.
problemInformationProblemInformationDetails 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
ProvidedValue
Gets the invalid value provided for the property.
public object ProvidedValue { get; }
Property Value
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
viewBagdynamicThe dynamic view bag used to display error notifications.
prefixstringAn optional prefix for error messages.