Skip to content

PROJECT: Java Schools [MVP] - #1

Open
wmemorgan wants to merge 12 commits into
masterfrom
mvp
Open

PROJECT: Java Schools [MVP]#1
wmemorgan wants to merge 12 commits into
masterfrom
mvp

Conversation

@wmemorgan

@wmemorgan wmemorgan commented Jun 24, 2020

Copy link
Copy Markdown
Owner

MVP

Add appropriate exception handling routines.

  • 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

This change is Reviewable

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