Table of Contents

Class RelationViolatedException

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

If removing an entity would cause a relationship exception then this exception is thrown.

public class RelationViolatedException : DbException, ISerializable, IKnownError
Inheritance
RelationViolatedException
Implements
Derived
Inherited Members

Constructors

RelationViolatedException()

Initializes a new instance of the RelationViolatedException class. The instance constructor.

public RelationViolatedException()

RelationViolatedException(Id?, Type, Exception?, string)

Initializes a new instance of the RelationViolatedException class.

public RelationViolatedException(Id? suspectEntityId, Type suspectType, Exception? innerException, string exceptionName = "RelationViolatedException")

Parameters

suspectEntityId Id

The ID of the IEntity which caused the exception.

suspectType Type

The Type of the entity which caused the exception.

innerException Exception

The inner exception.

exceptionName string

The name of the exception.

RelationViolatedException(Exception?)

Initializes a new instance of the RelationViolatedException class. The instance constructor.

public RelationViolatedException(Exception? innerException)

Parameters

innerException Exception

The inner. Exception

RelationViolatedException(string?)

Initializes a new instance of the RelationViolatedException class.

public RelationViolatedException(string? message)

Parameters

message string

The exception message

Properties

SuspectEntityId

Gets or sets the suspected Id which caused the exception.

public Id? SuspectEntityId { get; set; }

Property Value

Id

Id