API Errors

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.

Last edited Feb 7, 2015 at 9:47 AM by StevenLiekens, version 1