File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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...));
You can’t perform that action at this time.
0 commit comments