From 873ec5bf7455fa19d2f7b8ce6dbab96fda6f002f Mon Sep 17 00:00:00 2001 From: naoto Date: Sat, 20 Sep 2025 09:58:29 +0900 Subject: [PATCH] fix incorrect document --- core/include/prometheus/family.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/include/prometheus/family.h b/core/include/prometheus/family.h index f5c887bb..35559608 100644 --- a/core/include/prometheus/family.h +++ b/core/include/prometheus/family.h @@ -88,7 +88,7 @@ class PROMETHEUS_CPP_CORE_EXPORT Family : public Collectable { /// \param constant_labels Assign a set of key-value pairs (= labels) to the /// metric. All these labels are propagated to each time series within the /// metric. - /// \throw std::runtime_exception on invalid metric or label names. + /// \throw std::invalid_argument on invalid metric or label names. Family(const std::string& name, const std::string& help, const Labels& constant_labels); @@ -108,7 +108,7 @@ class PROMETHEUS_CPP_CORE_EXPORT Family : public Collectable { /// Counter, Gauge, Histogram or Summary for required constructor arguments. /// \return Return the newly created dimensional data or - if a same set of /// labels already exists - the already existing dimensional data. - /// \throw std::runtime_exception on invalid label names. + /// \throw std::invalid_argument on invalid label names. template T& Add(const Labels& labels, Args&&... args) { return Add(labels, detail::make_unique(args...));