Skip to content

Commit 3ad985a

Browse files
authored
Merge pull request #744 from FujiwaraNaoto/fix-incorrect-document-familyh
fix incorrect document for family.h
2 parents de14e6b + 873ec5b commit 3ad985a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/include/prometheus/family.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class PROMETHEUS_CPP_CORE_EXPORT Family : public Collectable {
8888
/// \param constant_labels Assign a set of key-value pairs (= labels) to the
8989
/// metric. All these labels are propagated to each time series within the
9090
/// metric.
91-
/// \throw std::runtime_exception on invalid metric or label names.
91+
/// \throw std::invalid_argument on invalid metric or label names.
9292
Family(const std::string& name, const std::string& help,
9393
const Labels& constant_labels);
9494

@@ -108,7 +108,7 @@ class PROMETHEUS_CPP_CORE_EXPORT Family : public Collectable {
108108
/// Counter, Gauge, Histogram or Summary for required constructor arguments.
109109
/// \return Return the newly created dimensional data or - if a same set of
110110
/// labels already exists - the already existing dimensional data.
111-
/// \throw std::runtime_exception on invalid label names.
111+
/// \throw std::invalid_argument on invalid label names.
112112
template <typename... Args>
113113
T& Add(const Labels& labels, Args&&... args) {
114114
return Add(labels, detail::make_unique<T>(args...));

0 commit comments

Comments
 (0)