Skip to content

Commit 5fed794

Browse files
SevaWeb011VsevolodLKaemmerling
authored
Changed the parent class for MetricNotFoundException to improve the exception hierarchy (#181)
Signed-off-by: Vsevolod <vmalygin@adsterra.com> Co-authored-by: Vsevolod <vmalygin@adsterra.com> Co-authored-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
1 parent 3e4811f commit 5fed794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Prometheus/Exception/MetricNotFoundException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Prometheus\Exception;
44

5-
use Exception;
5+
use RuntimeException;
66

77
/**
88
* Exception thrown if a metric can't be found in the CollectorRegistry.
99
*/
10-
class MetricNotFoundException extends Exception
10+
class MetricNotFoundException extends RuntimeException
1111
{
1212
}

0 commit comments

Comments
 (0)