Table of Contents

Class ExceptionInstance

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

Base class for all Exceptions.

false
[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 IDateTimeProvider

The exception data.

Properties

DateTime

Gets the date of this exception instance.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.ExceptionInstanceDateTime })]
public DateTime? DateTime { get; }

Property Value

DateTime?

The DateTime .

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?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object .

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetDataRecord()

Gets the exception event's data.

The exception event.
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

int

A hash code for the current object.

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.