From 4750753d032bb18405a39a7195b3251a743d9201 Mon Sep 17 00:00:00 2001 From: Vsevolod Date: Tue, 1 Apr 2025 14:38:50 +0300 Subject: [PATCH] Changed the parent class for MetricNotFoundException to improve the exception hierarchy Signed-off-by: Vsevolod --- src/Prometheus/Exception/MetricNotFoundException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Prometheus/Exception/MetricNotFoundException.php b/src/Prometheus/Exception/MetricNotFoundException.php index 73bee83d..28d1b722 100644 --- a/src/Prometheus/Exception/MetricNotFoundException.php +++ b/src/Prometheus/Exception/MetricNotFoundException.php @@ -2,11 +2,11 @@ namespace Prometheus\Exception; -use Exception; +use RuntimeException; /** * Exception thrown if a metric can't be found in the CollectorRegistry. */ -class MetricNotFoundException extends Exception +class MetricNotFoundException extends RuntimeException { }