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
TObject
The type of the object.
TKey
The 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
exception
ExceptionThe exception that caused the error.
value
TObjectThe value for the error.
key
TKeyThe 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
other
Error<TObject, TKey>
Returns
Equals(object?)
Parameters
obj
object