Table of Contents

Class ResponseFailException

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

Invoker exceptions where status is not 200.

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

Constructors

ResponseFailException(HttpStatusCode, string, Exception)

Initializes a new instance of the ResponseFailException class.

public ResponseFailException(HttpStatusCode statusCode, string resultToString, Exception innerException)

Parameters

statusCode HttpStatusCode

The status code.

resultToString string

The result to string.

innerException Exception

The inner Exception.

ResponseFailException(string?, HttpStatusCode, string, Exception?)

Initializes a new instance of the ResponseFailException class.

public ResponseFailException(string? url, HttpStatusCode statusCode, string resultToString, Exception? innerException)

Parameters

url string

The url.

statusCode HttpStatusCode

The status code.

resultToString string

The result to string.

innerException Exception

The inner Exception.

Properties

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

string

A message that describes the current exception.

StatusCode

Gets or sets the status code of the failed response.

public HttpStatusCode StatusCode { get; set; }

Property Value

HttpStatusCode

The status code of the failed response.

Url

Gets the status code of the failed response.

public string? Url { get; }

Property Value

string

The status code of the failed response.