-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pages: Add mechanism to handle API error codes (#3801)
Currently, Pages specific API request error codes are spread all over the codebase, without any uniform mechanism to handle them. This leads to error codes that are unreadable and difficult to keep track of. This commit introduces a very simple and straightforward mechanism (by means of a top level `enum`) that handles and makes such API error codes easier to reason about. Co-authored-by: Carmen Popoviciu <[email protected]>
- Loading branch information
1 parent
0adccc7
commit c404ff6
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters