Skip to content

API Errors

Ruhrpottpatriot edited this page Sep 1, 2015 · 1 revision

API errors can be handled by catching the ServiceException that is thrown. Important: API error message are always in English.

try
{
    // Invalid operation or otherwise bad request
}
catch (ServiceException exception)
{
    Console.WriteLine("Error: {0}", exception.Message);
}

The ServiceException class can be found in the Core library.

Clone this wiki locally