Unified XErrorHandlers.