About Exceptions An exception is raised when an error or other event interrupts normal execution of a program. The exception transfers
control to an exception handler, which allows you to separate normal program logic from error-handling. Because
exceptions are objects, they can be grouped into hierarchies using inheritance, and new exceptions can be
introduced without affecting existing code. An exception can carry information, such as an error message, from the
point where it is raised to the point where it is handled.
When an application uses the
SysUtils
unit, most runtime errors are automatically converted into exceptions.
Many errors that would otherwise terminate an application - such as insufficient memory, division by zero, and
general protection faults - can be caught and handled.