Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 17, 2025

This PR updates the Profile getter C and CPP APIs to avoid throwing exceptions when a requested parameter is not found in the internal std::map. Instead, the getters now return a nullptr (C API) or std::nullopt (CPP API) to signal that the key is missing.

This behavior aligns with the rest of our APIs, where "not found" cases are generally handled without exceptions. Throwing is now reserved for actual errors.


TYPE: IMPROVEMENT
DESC: Avoid throwing on missing Profile parameters in getter APIs.

@github-actions github-actions bot requested a review from a team as a code owner July 17, 2025 14:42
@kounelisagis kounelisagis requested a review from ypatia July 17, 2025 14:43
@kounelisagis kounelisagis reopened this Jul 17, 2025
@ypatia ypatia merged commit 697bcad into release-2.28 Jul 18, 2025
58 checks passed
@ypatia ypatia deleted the backport/pr-5552-to-release-2.28 branch July 18, 2025 08:34
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.

2 participants