0
Is this an example of exception?
Getting an error page telling you that you aren't connected to wifi on the internet?
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.