| commit | 697133f61e7f2603b9ee2e089d598ff6a15991e6 | [log] [tgz] |
|---|---|---|
| author | Tommi <tommi@webrtc.org> | Sun Dec 14 12:36:07 2025 |
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sun Dec 14 16:52:39 2025 |
| tree | 5689b846cdefae31c3055c44311ca3c762d60878 | |
| parent | a62cc1c03663dfc90e1984e0769588e34a14caf6 [diff] |
Add operator<< support to RTCError Replace the internal `std::string` message storage in `RTCError` with `StringBuilder`. This enables the use of streaming operators to append details to error messages directly. Introduce a `LOG_ERROR()` helper as a more C++ like alternative to the `LOG_AND_RETURN_ERROR` macro. This allows for cleaner C++ syntax with a visible return statement, such as: return LOG_ERROR(RTCError(...) << "Error details");` Also introducing a static construction helper to RTCError for the commonly used INVALID_PARAMETER error type, InvalidParameter(). This is the same approach as is currently used with the OK() construction helper. Bug: none Change-Id: Id410c5dad622ba891add4a3fedccb39c52af13f8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/433760 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#46487}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.