Class DuplicateException
- Namespace
- XENBIT.ResQueServe.Core.Exceptions
- Assembly
- RQS.Core.dll
Represents an exception thrown when a duplicate entry is found.
public class DuplicateException : ResQueServeException, ISerializable
- Inheritance
-
DuplicateException
- Implements
- Inherited Members
Constructors
DuplicateException(string, object, Exception, ProblemInformation)
Initializes a new instance of the DuplicateException class with the duplicate property, provided value, inner exception, and problem information.
public DuplicateException(string duplicateProperty, object providedValue, Exception innerException, ProblemInformation problemInformation)
Parameters
duplicatePropertystringThe property with the duplicate value.
providedValueobjectThe duplicate value.
innerExceptionExceptionThe inner exception that caused this exception.
problemInformationProblemInformationDetails about the problem that caused the exception.
DuplicateException(string, object, ProblemInformation)
Initializes a new instance of the DuplicateException class with the duplicate property, provided value, and problem information.
public DuplicateException(string duplicateProperty, object providedValue, ProblemInformation problemInformation)
Parameters
duplicatePropertystringThe property with the duplicate value.
providedValueobjectThe duplicate value.
problemInformationProblemInformationDetails about the problem that caused the exception.
Properties
DuplicateProperty
Gets the property with the duplicate value.
public string DuplicateProperty { get; }
Property Value
ProvidedValue
Gets the duplicate value.
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.