Reading Buses API V3.0.0
A C#, .net Standard Library for the Reading Buses Open Data API (https://reading-opendata.r2p.com/), 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)
staticpackage

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
jsonData returned from the API.

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