Skip to content

Exception Handling#11

Open
simonesquad wants to merge 10 commits intobloominstituteoftechnology:masterfrom
simonesquad:schools-monday
Open

Exception Handling#11
simonesquad wants to merge 10 commits intobloominstituteoftechnology:masterfrom
simonesquad:schools-monday

Conversation

@simonesquad
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant