In Exception selenium Tutorial, you will learn about what are the exception present in java and selenium and their reason, and also you will learn how to handle exception.
An Exception is an unplanned surprise that occurs during execution of program, the exception has power to stop the program execution.
Without a doubt exception stops the execution, but we are more powerful than exception so we can handle the exception without stopping the execution of the program.
We can handle the exception using try..catch..finally block, In layman terms, try block is nothing but a room in hospital which is little sensitive and we are having patient inside the particular room, when something unexpected happens in that room the hospital will be ready to handle the situation.
There are more than 40 Exceptions are present in the selenium webdriver.