nautobot-app-ssot
nautobot-app-ssot copied to clipboard
Improve handling of errors in contrib
Proposed Functionality
Upon failed object validation in create, update, or delete, raise the appropriate diffsync.exceptions.ObjectCrudException subclass (ObjectNotCreated, ObjectNotUpdated, ObjectNotDeleted). Include as much context as possible so the error can be acted upon.
Use Case
Instead of crashing the entire SSoT run, this singles out failures in individual CRUD operations and allows them to be properly logged.
This also enables the data validation engine integration.
On second thought, in nautobot_ssot.contrib this is already happening, and that is all we can enforce. We should however, document the existence of this mechanism and what it entails.