generated from mwc/lab_server
Answer to questions 3 and 4
This commit is contained in:
parent
bb20426d64
commit
3a919ca0ec
4
notes.md
4
notes.md
|
@ -23,10 +23,10 @@ You can run multiple projects/quieres at once.
|
|||
program's behavior. Describe a few routes which you think may exist for your
|
||||
chosen program's backend server.
|
||||
|
||||
|
||||
For the weather app, there is a probably a get route that finds the city in app that you searched and once that is located it routes to a website that has the local forcaste. Post route of the weather, and the updates to the server.
|
||||
|
||||
4. In your own words, what is an exception? When might it be useful to handle an
|
||||
exception? When is it better not to handle an exception, and instead let the
|
||||
program crash?
|
||||
|
||||
|
||||
Exception is when some errors show up the program knows how to deal with some errors. User perspective you would always want there to be expections and the program to never crash. It can help keep the program running. Coding perspective, its easier to fix a program then try to handle many different exceptions.
|
||||
|
|
Loading…
Reference in New Issue