Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions chess/3-web-api/web-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ void insertUser(UserData u) throws DataAccessException

The starter code includes a `dataAccess.DataAccessException`. This exception should be thrown by data access methods that could fail. If a method call fails, it should throw a `DataAccessException`. For example, the `DataAccessException` is thrown if a user attempts to update a non-existent game. If you like, feel free to create subclasses of DataAccessException that represent more specific errors relating to data access.

> [!NOTE]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be helpful to give an example of why you might want to add other classes and possibly point to the exception instruction rather than the note.

We might want to enhance the exception instruction to actually give an example in the custom exception section that shows how to extend the exception class and why you would do it.

> In Phases 3-6, you may find it helpful to create more exception classes besides DataAccessException.

### Example Data Access Methods

Here are some examples of the kinds of methods your DAOs will need to support. This list is not exhaustive. You should consult your server design in order to determine all of the methods you need to provide.
Expand Down