The Trap Manager allows your application to examine the trap dispatch table and patch traps
Inside Macintosh: Operating System Utilities (Chapter 8 - Trap Manager)
This document describes the parts of the Macintosh system software that allow you to manage various low-level aspects of the operating system. Chapter 8 describes how to use the Trap Manager and includes an overview, a tutorial, and a complete API reference.