Table of Contents

Class SuspectEntityException

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

An exception for use within the Processor namespace only, which includes information about entities which violated foreign key constraints and caused a RelationViolatedException.

public class SuspectEntityException : Exception, ISerializable, IKnownError
Inheritance
SuspectEntityException
Implements
Inherited Members

Constructors

SuspectEntityException(IEnumerable<(Id SuspectId, string SuspectTypeName)>, Exception?)

Initializes a new instance of the SuspectEntityException class. To be used for types if IEntity that may contain sensitive information. For example, Users (or any derived types) should not be passed directly to the constructor of any exception.

public SuspectEntityException(IEnumerable<(Id SuspectId, string SuspectTypeName)> safeSuspectEntityInfo, Exception? innerException)

Parameters

safeSuspectEntityInfo IEnumerable<(Id SuspectId, string SuspectTypeName)>

The ID and Type name information for the suspect entities.

innerException Exception

Any inner or root exception that was thrown.

Properties

SuspectedEntities

Gets the collection containing IDs and type names of entities that are suspect in causing the error.

public IEnumerable<(Id SuspectId, string SuspectTypeName)> SuspectedEntities { get; }

Property Value

IEnumerable<(Id SuspectId, string SuspectTypeName)>

The suspected entities.