Error handling
Each response from the ChargeOver API contains a Success flag and may include error messages. Here's an example of basic error handling:
if (!response.Success)
{
Console.WriteLine("Error: " + response.Message);
}
Each response from the ChargeOver API contains a Success flag and may include error messages. Here's an example of basic error handling:
if (!response.Success)
{
Console.WriteLine("Error: " + response.Message);
}