Table of Contents

Class DbUnavailableException

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

This exception occurs if the system makes a database request that could not succeed because of connection failure or data change.

public class DbUnavailableException : Exception, ISerializable
Inheritance
DbUnavailableException
Implements
Inherited Members

Constructors

DbUnavailableException(Exception)

Initializes a new instance of the DbUnavailableException class. The constructor.

[Obsolete("Use the class constructor that accepts DbUnavailableState parameter")]
public DbUnavailableException(Exception innerException)

Parameters

innerException Exception

The inner Exception.

DbUnavailableException(Exception?, DbUnavailableState)

Initializes a new instance of the DbUnavailableException class. The constructor.

public DbUnavailableException(Exception? innerException, DbUnavailableState state)

Parameters

innerException Exception

The inner Exception.

state DbUnavailableState

The DbUnavailableState.

DbUnavailableException(string?, Exception?)

Initializes a new instance of the DbUnavailableException class. The constructor.

[Obsolete("Use the class constructor that accepts DbUnavailableState parameter")]
public DbUnavailableException(string? message, Exception? innerException)

Parameters

message string

The message.

innerException Exception

The inner Exception.

DbUnavailableException(string?, Exception?, DbUnavailableState)

Initializes a new instance of the DbUnavailableException class. The constructor.

public DbUnavailableException(string? message, Exception? innerException, DbUnavailableState state)

Parameters

message string

The message.

innerException Exception

The inner Exception.

state DbUnavailableState

The DbUnavailableState.

Properties

Message

Gets the message associated with the DbUnavailableException.

public override string Message { get; }

Property Value

string

string

State

public DbUnavailableState State { get; }

Property Value

DbUnavailableState

The DbUnavailableState.

Methods

Clone()

Creates a new DbUnavailableException that is a copy of the current instance.

public DbUnavailableException Clone()

Returns

DbUnavailableException

A new DbUnavailableException that is a copy of this instance.