Enhance SDK Error Handling and Naming for Improved Clarity #3
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
Ready for Development
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: anthrove/e621-sdk-go#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
I encountered an issue where the plugin returned a
not found
error. It wasn't immediately clear that the error was thrown by the SDK, which led to some confusion during troubleshooting.To improve user experience and ease of debugging, I propose enhancing our error handling and naming within the SDK. This could potentially involve introducing two sets of errors:
Low-Level Errors: These would be the technical, system-level errors we currently have. They are useful for developers who are familiar with the underlying system and can understand the technical details.
High-Level Errors: These would provide a more descriptive and user-friendly explanation of what went wrong. They could help users who are not as familiar with the system internals, by describing the error in a more understandable way.
This dual approach could help both experienced and novice users of our SDK, by providing the right level of detail based on their needs and familiarity with the system. It would also help to pinpoint the source of the error more quickly, thereby reducing debugging time.