error trapping

The process of intercepting an error using error-handling features in Visual Basic.