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

A validation failure: a machine code plus a human message. More...

#include <error.hpp>

Collaboration diagram for prom::Error:
Collaboration graph
[legend]

Public Member Functions

bool operator== (const Error &) const =default
 

Public Attributes

ErrorCode code
 Machine-readable reason.
 
std::string message
 Context (e.g. the offending name).
 

Detailed Description

A validation failure: a machine code plus a human message.

Member Function Documentation

◆ operator==()

bool prom::Error::operator== ( const Error ) const
default

Member Data Documentation

◆ code

ErrorCode prom::Error::code

Machine-readable reason.

◆ message

std::string prom::Error::message

Context (e.g. the offending name).


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