diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-11-27 11:50:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-10 16:44:55 +0200 |
commit | 1d0a198748c0e4aa1ce22ab2989a2b734f7d8948 (patch) | |
tree | 2c4b596214e19219ee570a04c8a412922caf0ea7 /mod/mod-ci-github-gh.hxx | |
parent | f5768fee9d0977a42f344cf0cfdae74ca80a23b9 (diff) |
Ensure all exceptions are handled in build_*() notifications
Diffstat (limited to 'mod/mod-ci-github-gh.hxx')
-rw-r--r-- | mod/mod-ci-github-gh.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/mod-ci-github-gh.hxx b/mod/mod-ci-github-gh.hxx index 5fff2bc..eeda871 100644 --- a/mod/mod-ci-github-gh.hxx +++ b/mod/mod-ci-github-gh.hxx @@ -107,7 +107,7 @@ namespace brep // Return the GitHub check run status corresponding to a build_state. // string - gh_to_status (build_state st) noexcept; + gh_to_status (build_state); // Return the build_state corresponding to a GitHub check run status // string. Throw invalid_argument if the passed status was invalid. @@ -214,12 +214,14 @@ namespace brep gh_installation_access_token () = default; }; - // Throw runtime_error if the conversion fails. + // Throw system_error if the conversion fails due to underlying operating + // system errors. // string gh_to_iso8601 (timestamp); - // Throw invalid_argument if the conversion fails. + // Throw invalid_argument if the conversion fails due to the invalid + // argument and system_error if due to underlying operating system errors. // timestamp gh_from_iso8601 (const string&); |