Improved error handling #8

Merged
jsheunis merged 2 commits from error-handling into main 2025-04-29 16:20:14 +00:00
jsheunis commented 2025-04-29 16:17:59 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No description provided.