In computing and computer programming , exception handling is the process of responding to the occurrence of exceptions — anomalous or exceptional conditions requiring special processing — during the execution of a program. In general, an exception breaks the normal flow of execution and executes a pre-registered exception handler ; the details of how this is done depend on whether it is a hardware or software exception and how the software exception is implemented. Exception handling is provided it facilitated by specialized programming language constructs, hardware mechanisms like interrupts , or operating system OS inter-process communication IPC facilities like signals. Some exceptions, especially hardware ones, may be handled so gracefully that execution can resume where it was interrupted. An alternative approach to exception handling in software is error checking , which maintains normal program flow with later explicit checks for contingencies reported using special return values, an auxiliary global variable such as C ' s errno , or floating point status flags. Input validation , which preemptively filters exceptional cases, is also an approach.
Last Updated: September 9, References Approved. This article was co-authored by Christopher Taylor, PhD. There are 17 references cited in this article, which can be found at the bottom of the page. This article has 45 testimonials from our readers, earning it our reader-approved status. This article has been viewed 4,, times.
With the thousands of scholarships out there, you have a chance to win serious money to put towards your college tuition. But, the scholarship application process can be quite stressful, so we are here to help. The most difficult part of the application process for students is usually the essay. How do you write it? What should it include?