Error types
Handling errors
12345678910111213141516171819202122232425
using Zengenti.Contensis.Delivery;
try
{
// Get a specific entry
var entry = filmProject.Entries.Get("9c64e11e-fcf0-44a6-adff-41e13de15515");
// Update a value
entry.Set("yearOfRelease", 1978);
// Commit the change
entry.Save();
}
catch(ValidationException valEx)
{
// Validation error(s)
}
catch(RestRequestException valEx)
{
// Something went wrong, likely on the server
}
catch(Exception ex)
{
// Something went wrong in the client API
}