Step 1: define error handling

An application uses one or more callback routines to handle Monitor Client Library and Server error and informational messages.

See the code sample on page 34.