Improved error handling #8
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/shacl-tulip!8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "error-handling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This changes the adhoc way in which request responses were handled
into a structured handling approach, where errors are thrown and
caught and returned as an object with standard properties, such as
'success', 'message', 'error', 'skipped', 'url'. This holds for
successful requests as well. This allows all errors to be bubbled
upwards in a structured and consistent way, so that frontend apps
that use this library can react to request responses in a systematic
way.