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
suspectEntityIdIdThe ID of the IEntity which caused the exception.
suspectTypeTypeThe Type of the entity which caused the exception.
innerExceptionExceptionThe inner exception.
exceptionNamestringThe 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
messagestringThe exception message
Properties
SuspectEntityId
Gets or sets the suspected Id which caused the exception.
public Id? SuspectEntityId { get; set; }