Class Error<TObject, TKey>
- Namespace
- Dynamic
Data .Kernel
- Assembly
- DynamicData.dll
An error container used to report errors from within dynamic data operators.
public sealed class Error<TObject, TKey> : IKeyValue<TObject, TKey>, IKey<TKey>, IEquatable<Error<TObject, TKey>> where TKey : notnull
Type Parameters
TObjectThe type of the object.
TKeyThe type of the key.
- Inheritance
-
Error<TObject, TKey>
- Implements
-
IKey
Value <TObject, TKey>IKey<TKey>IEquatable<Error<TObject, TKey>>
- Extension Methods
Remarks
Initializes a new instance of the Error<TObject, TKey> class.
Constructors
Error(Exception?, TObject, TKey)
An error container used to report errors from within dynamic data operators.
Parameters
exceptionExceptionThe exception that caused the error.
valueTObjectThe value for the error.
keyTKeyThe key for the error.
Remarks
Initializes a new instance of the Error<TObject, TKey> class.
Properties
Exception
Gets the exception.
Property Value
Key
Gets the key.
Property Value
- TKey
Value
Gets the object.
Property Value
- TObject
Methods
Equals(Error<TObject, TKey>?)
Parameters
otherError<TObject, TKey>
Returns
Equals(object?)
Parameters
objobject