Table of Contents

Class DataNotFoundException

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

Represents an exception thrown when data is not found.

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

Constructors

DataNotFoundException(string, object?, Exception, ProblemInformation)

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

public DataNotFoundException(string lookupProperty, object? providedValue, Exception innerException, ProblemInformation problemInformation)

Parameters

lookupProperty string

The property used to lookup the data.

providedValue object

The value provided for the lookup.

innerException Exception

The inner exception that caused this exception.

problemInformation ProblemInformation

Details about the problem that caused the exception.

DataNotFoundException(string, object?, ProblemInformation)

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

[JsonConstructor]
public DataNotFoundException(string lookupProperty, object? providedValue, ProblemInformation problemInformation)

Parameters

lookupProperty string

The property used to lookup the data.

providedValue object

The value provided for the lookup.

problemInformation ProblemInformation

Details about the problem that caused the exception.

Properties

LookupProperty

Gets the property used for data lookup.

public string LookupProperty { get; }

Property Value

string

ProvidedValue

Gets the value provided for the data lookup.

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.