Table of Contents

Class RequestFailedException

Namespace
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Api
Assembly
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll

Represents errors with the call to or its response value from the CommunicationGateway DxM.

public class RequestFailedException : Exception
Inheritance
RequestFailedException
Extension Methods

Constructors

RequestFailedException()

Initializes a new instance of the RequestFailedException class.

RequestFailedException(ErrorCode)

Builds an exception based on a CommunicationGateway API error code.

RequestFailedException(SerializationInfo, StreamingContext)

Builds an exception based on a CommunicationGateway API error code.

RequestFailedException(string)

Builds an exception based on a message, reverts to the default behavior of the Exception class.

RequestFailedException(string, Exception)

Initializes a new instance of the RequestFailedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Properties

ErrorCode

The error code if one was received, empty otherwise.

Methods

ToString()

In case there is an error code, overwrites the default Exception.ToString call and builds a comprehensive message around the code.