0

Is this an example of exception?

Getting an error page telling you that you aren't connected to wifi on the internet?

23rd Jun 2019, 2:26 PM
Mike Harris
Mike Harris - avatar
1 Réponse
+ 1
An exception in code is a situation, that a developer typically dont want to occure. Eg division by 0 However, a developer can prepare for cases by implementing exception handling - i.e. dealing with the situation. Your exampel could be such a situation. The code deals with the unwanted situation in a defined way.
23rd Jun 2019, 2:48 PM
Karsten Stiegler
Karsten Stiegler - avatar