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
lookupPropertystringThe property used to lookup the data.
providedValueobjectThe value provided for the lookup.
innerExceptionExceptionThe inner exception that caused this exception.
problemInformationProblemInformationDetails 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
lookupPropertystringThe property used to lookup the data.
providedValueobjectThe value provided for the lookup.
problemInformationProblemInformationDetails about the problem that caused the exception.
Properties
LookupProperty
Gets the property used for data lookup.
public string LookupProperty { get; }
Property Value
ProvidedValue
Gets the value provided for the data lookup.
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.