Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab7 -Errors #665

Open
sirigithub opened this issue Sep 15, 2019 · 0 comments
Open

Lab7 -Errors #665

sirigithub opened this issue Sep 15, 2019 · 0 comments

Comments

@sirigithub
Copy link
Collaborator

sirigithub commented Sep 15, 2019

  • Create an executable go program in directory 07_errors/sirigithub
  • Copy the CRUD puppy from upstream master 06_puppy/sirigithub
  • Add a custom error type Error with fields Message and Code
  • Extend the Storer interface for all methods to also return error
  • Create errors for:
  • Value < 0
  • ID not found in Read, Update and Delete
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 a pull request may close this issue.

1 participant