RestClientException

Base class for all rest exception. It occurs when an http request to CATI REST API returns unknown code not supported by other exception classes

Constructors


RestClientException(string url, System.Net.HttpStatusCode status, string reason, string content)

Creates and initializes an instance of RestClientException exception by url, status, reason and content

Parameters

url

Problem URL

status

Status code

reason

Why the error occured

content

Received data if it exists

Properties

Url

Problem URL

Status

Status code

Reason

Why the error occured

Content

Received data if it exists

Methods


ToString()

Convert the exception to string

Returns

String with all information about the exception