Skip to content

feat(generator/dart): add error utility methods to rpc.Status#1702

Merged
devoncarew merged 1 commit intogoogleapis:mainfrom
devoncarew:status_error_handlers
Apr 3, 2025
Merged

feat(generator/dart): add error utility methods to rpc.Status#1702
devoncarew merged 1 commit intogoogleapis:mainfrom
devoncarew:status_error_handlers

Conversation

@devoncarew
Copy link
Copy Markdown
Contributor

Add error utility methods to rpc.Status:

This should make it easier for users to unpack the Any messages from Status.details. Code completion will show the existing members for Status (code, message, details) as well as these three new extension methods.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.21%. Comparing base (a3daed3) to head (1d156a4).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1702   +/-   ##
=======================================
  Coverage   96.21%   96.21%           
=======================================
  Files          48       48           
  Lines        1849     1849           
=======================================
  Hits         1779     1779           
  Misses         70       70           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

/// list.
///
/// All error responses are expected to include an [ErrorInfo] object.
ErrorInfo? get errorInfo {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I might copy that for Rust. @dbolduc FYI.

@devoncarew devoncarew merged commit 87617ff into googleapis:main Apr 3, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Any - add custom support for unpackaging errors from Status.details

2 participants