Skip to main content

Error types

Handling errors

C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 }

Still need help?

New support request