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
DbUnavailableException(Exception?, DbUnavailableState)
Initializes a new instance of the DbUnavailableException class. The constructor.
public DbUnavailableException(Exception? innerException, DbUnavailableState state)
Parameters
innerException
ExceptionThe inner Exception.
state
DbUnavailableStateThe 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
DbUnavailableException(string?, Exception?, DbUnavailableState)
Initializes a new instance of the DbUnavailableException class. The constructor.
public DbUnavailableException(string? message, Exception? innerException, DbUnavailableState state)
Parameters
message
stringThe message.
innerException
ExceptionThe inner Exception.
state
DbUnavailableStateThe DbUnavailableState.
Properties
Message
Gets the message associated with the DbUnavailableException.
public override string Message { get; }
Property Value
State
Gets the DbUnavailableState.
public DbUnavailableState State { get; }
Property Value
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.