An exception is an event that occurred when it was not intended, and therefore the application does not know what to do with such an event. In all OOP languages ββ(what I know), what happens at runtime is to stop the function that triggered the event, and then throw the exception on the stack until someone knows what to do with it. This is where try / catch blocks come in.
Pedroc88
source share