Step 1: defining error handling

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