Reading Buses APIV2.1.0
A C#, .net Standard Library for the Reading Buses Open Data API (http://rtl2.ods-live.co.uk/cms/apiservice), available to use in your C# console, WPF, UWP or Win Form Applications.
ReadingBusesAPI.ErrorManagement.ErrorManager Class Reference

Responsible for extracting and producing an error message from an API result. To the end user. More...

Static Package Functions

static void TryErrorMessageRetrieval (string json)
Attempts to extract the error message directly sent from the API. If it can get the error message given send to the user. If the error message can not be extracted then the API has proved no explanation and so throw a generic error. More...

Detailed Description

Responsible for extracting and producing an error message from an API result. To the end user.

Member Function Documentation

TryErrorMessageRetrieval()

static void ReadingBusesAPI.ErrorManagement.ErrorManager.TryErrorMessageRetrieval ( string json )
static package

Attempts to extract the error message directly sent from the API. If it can get the error message given send to the user. If the error message can not be extracted then the API has proved no explanation and so throw a generic error.

Parameters
json Data returned from the API.

The documentation for this class was generated from the following file: