There are three types of exception—the checked exception, the error and the runtime exception.
How many types of exceptions are there in selenium?
Selenium exceptions are divided into two types including Checked Exceptions and Unchecked Exceptions. Checked Exceptions are handled during the process of writing codes.
How many exceptions can a method throw?
A method can throw one of several exceptions. Eg: public void dosomething() throws IOException, AWTException { // .... } This signals that the method can eventually throw one of those two exceptions (and also any of the unchecked exceptions).