Table of Contents

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

duplicateProperty string

The property with the duplicate value.

providedValue object

The duplicate value.

innerException Exception

The inner exception that caused this exception.

problemInformation ProblemInformation

Details 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

duplicateProperty string

The property with the duplicate value.

providedValue object

The duplicate value.

problemInformation ProblemInformation

Details about the problem that caused the exception.

Properties

DuplicateProperty

Gets the property with the duplicate value.

public string DuplicateProperty { get; }

Property Value

string

ProvidedValue

Gets the duplicate value.

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.