Exception Handling#11
Open
simonesquad wants to merge 10 commits intobloominstituteoftechnology:masterfrom
Open
Exception Handling#11simonesquad wants to merge 10 commits intobloominstituteoftechnology:masterfrom
simonesquad wants to merge 10 commits intobloominstituteoftechnology:masterfrom
Conversation
added 10 commits
December 14, 2020 13:48
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MVP - [x]
You must specifically handle the following exceptions:
a resource is not found where it should be - for example, you look up a student who is not there
a resource is found where it should not be - for example, you try to enroll a student in a course where they are already enrolled
a non-handled endpoint is accessed (a URL not found exception)
All other exceptions should be handled by some generic exception handled that you provide.
All exception messages should start with the phrase "Found an issue with School: " followed by any system-generated messages you think appropriate.
The following is the format for the error messages:
Title - The title of the exception
Status - Http Status Code
detail - Detailed message for the client
timestamp - date and time of the exception
developer - message for developers about this error message, things like class and code causing the error
List of Validation Errors - If data validation errors caused this error, the list of them will appear here
Stretch Goal - [x]
Custom Swagger Documentation