Table of Contents

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 ExceptionEvent

The exception.

isEnd bool

The exception Driver.

Properties

DateTime

Gets the date.

public DateTime? DateTime { get; }

Property Value

DateTime?

The DateTime .

Device

Gets the Device.

public Device Device { get; }

Property Value

Device

The Device .

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

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.

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.

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

Returns

string

A string that represents this instance.