Callback used by the captureDiagnostics method.
captureDiagnostics
Called when the operation fails.
Called when diagnostics are captured successfully, with the diagnostic ID.
Callback used by the
captureDiagnosticsmethod.