| description | Learn more about: Writing an Exception Handler | ||
|---|---|---|---|
| title | Writing an Exception Handler | ||
| ms.date | 11/04/2016 | ||
| helpviewer_keywords |
|
||
| ms.assetid | 71473fee-f773-4a34-bf12-82a3af79579c |
Exception handlers are typically used to respond to specific errors. You can use the exception-handling syntax to filter out all exceptions other than those you know how to handle. Other exceptions should be passed to other handlers (possibly in the run-time library or the operating system) written to look for those specific exceptions.
Exception handlers use the try-except statement.