A method that encounters an error creates an object and passes it on to the runtime system. The object, known as an exception object, contains details about the error, such as its type and the program’s condition at the time of the occurrence. Throwing an exception entails producing an exception object and delivering it to the runtime system.
The runtime system looks for a way to handle an exception that a method throws. The ordered list of methods that were called to get to the method where the error occurred is the collection of potential “somethings” that can be used to manage the exception.
Shathana. S.R. Answered question May 29, 2023
				