Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
An exception is an abnormal or unprecedented event that occurs after the execution of a software program or application. It is a runtime error of an undesired result or event affecting normal program flow.
An exception is also known as a fault.
As a part of every well structured software or hardware appliance, an exception may be classified as one of two broad types: predefined and user defined. Predefined exceptions are native to a system and generally occur when a software developer writes inappropriate code or incorrectly accesses or edits system functionality. A user defined exception is created by a developer to warn end users about certain mistakes or errors.
Exceptions are handled by an exception handler, which helps the underlying system resolve or counteract the exception.