prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
Loading...
Searching...
No Matches
Public Member Functions | List of all members
prom::Exception Class Reference

Thrown by the throwing Registry factories when a spec fails validation. More...

#include <error.hpp>

Inheritance diagram for prom::Exception:
Inheritance graph
[legend]
Collaboration diagram for prom::Exception:
Collaboration graph
[legend]

Public Member Functions

 Exception (Error error)
 
const Errorerror () const noexcept
 The structured error that triggered this exception.
 

Detailed Description

Thrown by the throwing Registry factories when a spec fails validation.

Constructor & Destructor Documentation

◆ Exception()

prom::Exception::Exception ( Error  error)
inlineexplicit

Member Function Documentation

◆ error()

const Error & prom::Exception::error ( ) const
inlinenoexcept

The structured error that triggered this exception.


The documentation for this class was generated from the following file: