Adds Http2VisitorInterface::OnErrorDebug(), a method that conveys error messages for debugging purposes.
PiperOrigin-RevId: 381094999
diff --git a/http2/adapter/http2_visitor_interface.h b/http2/adapter/http2_visitor_interface.h
index f174329..4250a5f 100644
--- a/http2/adapter/http2_visitor_interface.h
+++ b/http2/adapter/http2_visitor_interface.h
@@ -186,6 +186,9 @@
// for a stream. Note that there may be multiple metadata blocks for a stream.
virtual void OnMetadataEndForStream(Http2StreamId stream_id) = 0;
+ // Invoked with an error message from the application.
+ virtual void OnErrorDebug(absl::string_view message) = 0;
+
protected:
Http2VisitorInterface() = default;
};