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
IdThe ID of the IEntity which caused the exception.
suspectType
TypeThe Type of the entity which caused the exception.
innerException
ExceptionThe inner exception.
exceptionName
stringThe name of the exception.
RelationViolatedException(Exception?)
Initializes a new instance of the RelationViolatedException class. The instance constructor.
public RelationViolatedException(Exception? innerException)
Parameters
RelationViolatedException(string?)
Initializes a new instance of the RelationViolatedException class.
public RelationViolatedException(string? message)
Parameters
message
stringThe exception message
Properties
SuspectEntityId
Gets or sets the suspected Id which caused the exception.
public Id? SuspectEntityId { get; set; }