diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-11-29 08:34:09 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-12-02 09:37:25 +0200 |
commit | f2bd0672d1af5616cfc0d0ac006a69fca6c99bb4 (patch) | |
tree | b1a403f71202cfaa96c5b9a9986ab56ac0015e18 /mod/mod-ci-github-service-data.hxx | |
parent | 7f06026024bd0c81f16f2cbff85712750c41549e (diff) |
Review exceptions thrown by github-ci API functions
Diffstat (limited to 'mod/mod-ci-github-service-data.hxx')
-rw-r--r-- | mod/mod-ci-github-service-data.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx index cabd19a..776ec8d 100644 --- a/mod/mod-ci-github-service-data.hxx +++ b/mod/mod-ci-github-service-data.hxx @@ -139,6 +139,9 @@ namespace brep // // Throw invalid_argument if the schema version is not supported. // + // Throw invalid_argument (invalid_json_input) in case of malformed JSON + // or any invalid values. + // explicit service_data (const string& json); @@ -179,6 +182,11 @@ namespace brep // Serialize to JSON. // + // Throw invalid_argument if any values are invalid. + // + // May also throw invalid_json_output but that would be a programming + // error. + // string json () const; }; |