Class ExceptionInstance
- Namespace
- Geotab.Checkmate.ObjectModel.Exceptions
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Base class for all Exceptions.
[ReportClass]
public class ExceptionInstance : IDateTimeProvider, IDeviceProvider, IDriverProvider
- Inheritance
-
ExceptionInstance
- Implements
- Inherited Members
Constructors
ExceptionInstance()
Initializes a new instance of the ExceptionInstance class. Default constructor. Creates a new ExceptionInstance instance.
public ExceptionInstance()
ExceptionInstance(IDateTimeProvider)
Initializes a new instance of the ExceptionInstance class. Initializes a new instance of the ExceptionInstance class.
public ExceptionInstance(IDateTimeProvider dataRecord)
Parameters
dataRecord
IDateTimeProviderThe exception data.
Properties
DateTime
Gets the date of this exception instance.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.ExceptionInstanceDateTime })]
public DateTime? DateTime { get; }
Property Value
Device
Gets the Device of the ExceptionInstance.
public Device? Device { get; }
Property Value
- Device
The Device of the ExceptionInstance.
Driver
Gets the Driver" /> of the {@link ExceptionInstance} .
public Driver Driver { get; }
Property Value
- Driver
The <see cref="Driver" />.
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
Returns
GetDataRecord()
Gets the exception event's data.
public IDateTimeProvider? GetDataRecord()
Returns
- IDateTimeProvider
The exception event's data.
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
ToString()
Returns a string that represents this instance.
public override string ToString()