Class ExceptionEventMargin
- Namespace
- Geotab.Checkmate.ObjectModel.Exceptions
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Base class for all Exceptions.
public class ExceptionEventMargin : IDateTimeProvider, IDeviceProvider, IDriverProvider
- Inheritance
-
ExceptionEventMargin
- Implements
- Inherited Members
Constructors
ExceptionEventMargin(ExceptionEvent, bool)
Initializes a new instance of the ExceptionEventMargin class. Initializes a new instance of the ExceptionInstance class.
public ExceptionEventMargin(ExceptionEvent exceptionEvent, bool isEnd = false)
Parameters
exceptionEvent
ExceptionEventThe exception.
isEnd
boolThe exception Driver.
Properties
DateTime
Gets the date.
public DateTime? DateTime { get; }
Property Value
Device
Gets the Device.
public Device Device { get; }
Property Value
Driver
Gets the Driver of the ExceptionInstance .
public Driver Driver { get; }
Property Value
- Driver
The Driver of the ExceptionInstance .
ExceptionEvent
Gets the ExceptionEvent of this instance.
public ExceptionEvent ExceptionEvent { get; }
Property Value
- ExceptionEvent
The ExceptionEvent .
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
public override int GetHashCode()
Returns
IsStart()
Gets boolean value of true if this instance is the beginning of the exception event.
public bool IsStart()
Returns
- bool
True if this instance is the beginning of the exception event.
ToString()
Returns a string that represents this instance.
public override string ToString()