Class CogniteError<TError>
Represents an error that occured on a push to CDF, or in pre-push sanitation.
Inherited Members
Namespace: Cognite.Extensions
Assembly: Cognite.Extensions.dll
Syntax
public class CogniteError<TError> : CogniteError
Type Parameters
Name | Description |
---|---|
TError |
Properties
| Edit this page View SourceSkipped
Input items skipped if the request was cleaned using this error.
Declaration
public IEnumerable<TError>? Skipped { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<TError> |
Methods
| Edit this page View SourceMerge(IEnumerable<CogniteError<TError>>)
Merge a list of errors. Note that the other errors should have the same ResourceType and ErrorType as this one, for meaningful results.
Declaration
public static CogniteError<TError> Merge(IEnumerable<CogniteError<TError>> errs)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CogniteError<TError>> | errs |
Returns
Type | Description |
---|---|
CogniteError<TError> | Merged error |
ReplaceSkipped<TRep>(Func<TError, TRep>)
Return a new cognite error with error type replaced according to
replace
. Everything else will be the same.
Declaration
public CogniteError<TRep> ReplaceSkipped<TRep>(Func<TError, TRep> replace)
Parameters
Type | Name | Description |
---|---|---|
Func<TError, TRep> | replace | Method to replace old error type with new |
Returns
Type | Description |
---|---|
CogniteError<TRep> | New cognite error with same contents except for replaced members of Skipped |
Type Parameters
Name | Description |
---|---|
TRep | Type of new element |