forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply new NotFound exception replacing the prev impelementation.
------------------------------------ We defined custom HttpExceptions on hotosm#5899 to better handle errors but these exceptions were not used anywhere. This commit has replaced the previous NotFound custom exception which was simply a basic exceptio class with the new implementation.
- Loading branch information
1 parent
fff19e8
commit 4118cc9
Showing
47 changed files
with
212 additions
and
135 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
{ | ||
"NOT_FOUND": "The requested resource was not found.", | ||
"NOT_FOUND": "The requested resource was not found on the server.", | ||
"APPLICATION_NOT_FOUND": "The requested application was not found on the server.", | ||
"CAMPAIGN_NOT_FOUND": "The requested campaign was not found on the server.", | ||
"COMMENTS_NOT_FOUND": "The comments associated with the requested resource were not found on the server.", | ||
"INTEREST_NOT_FOUND": "The requested interest was not found on the server.", | ||
"ISSUE_CATEGORY_NOT_FOUND": "The requested mapping issue category was not found on the server.", | ||
"JOIN_REQUEST_NOT_FOUND": "Team join request by the user was not found on the server.", | ||
"LICENSE_NOT_FOUND": "The requested license was not found on the server.", | ||
"MESSAGE_NOT_FOUND": "The requested message was not found on the server.", | ||
"MESSAGES_NOT_FOUND": "The messages associated with the requested resource were not found on the server.", | ||
"NOTIFICATIONS_NOT_FOUND": "The notifications associated with the requested resource were not found on the server.", | ||
"ORGANISATION_NOT_FOUND": "The requested organisation was not found on the server.", | ||
"PROJECT_NOT_FOUND": "The requested project was not found on the server.", | ||
"PROJECTS_NOT_FOUND": "The projects associated with the requested resource were not found on the server.", | ||
"TASK_NOT_FOUND": "The requested task was not found on the server.", | ||
"TASKS_NOT_FOUND": "The tasks associated with the requested resource were not found on the server.", | ||
"TEAM_NOT_FOUND": "The requested team was not found on the server.", | ||
"USER_NOT_FOUND": "The requested user was not found on the server.", | ||
"BAD_REQUEST": "The request was invalid or cannot be otherwise served.", | ||
"UNAUTHORIZED": "Authentication credentials were missing or incorrect.", | ||
"FORBIDDEN": "The request is understood, but it has been refused or access is not allowed.", | ||
"CONFLICT": "The request could not be completed due to a conflict with the current state of the resource.", | ||
"INTERNAL_SERVER_ERROR": "An unexpected error occurred while processing the request. Please contact the system administrator." | ||
} | ||
} |
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
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
Oops, something went wrong.