Show / Hide Table of Contents

Class CogniteError<TError>

Represents an error that occured on a push to CDF, or in pre-push sanitation.

Inheritance
object
CogniteError
CogniteError<TError>
Inherited Members
CogniteError.Type
CogniteError.Resource
CogniteError.Values
CogniteError.Exception
CogniteError.Message
CogniteError.Status
CogniteError.Complete
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extensions
Assembly: Cognite.Extensions.dll
Syntax
public class CogniteError<TError> : CogniteError
Type Parameters
Name Description
TError

Properties

| Edit this page View Source

Skipped

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 Source

Merge(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

| Edit this page View Source

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

Extension Methods

DataModelUtils.GetOrCreateResourcesAsync<T, T2>(T2, IEnumerable<InstanceIdentifier>, Func<IEnumerable<InstanceIdentifier>, IEnumerable<SourcedNodeWrite<T>>>, Func<IEnumerable<SourcedNodeWrite<T>>, SanitationMode, (IEnumerable<SourcedNodeWrite<T>>, IEnumerable<CogniteError<SourcedNodeWrite<T>>>)>, int, int, RetryMode, SanitationMode, CancellationToken)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX