PK_ERROR_code_t PK_ERROR_register_callbacks ( --- received arguments --- PK_ERROR_frustrum_t frustrum --- application's error handler ) This function registers the given application error handler. The handler will be called and passed a PK_ERROR_sf_t describing an error just before a failing PK function is about to return. The handler may longjump over Parasolid providing PK_SESSION_tidy is called before any other PK functions are executed. PK_SESSION_tidy must not be called if the error handler returns control to Parasolid. If a NULL value has been provided for the handler then no attempt will be made to invoke it. Error handlers may be registered or changed at any time.