idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::error_category Class Reference

Error category for IDFXX and ESP-IDF error codes. More...

Inheritance diagram for idfxx::error_category:

Public Member Functions

const char * name () const noexcept override final
 Returns the name of the error category.
 
std::string message (int ec) const override final
 Returns a human-readable message for the given error code.
 

Detailed Description

Error category for IDFXX and ESP-IDF error codes.

This category provides human-readable error messages for IDFXX and ESP-IDF error codes, enabling integration with the standard C++ error handling mechanisms.

Definition at line 70 of file error.hpp.

Member Function Documentation

◆ message()

std::string idfxx::error_category::message ( int  ec) const
finaloverride

Returns a human-readable message for the given error code.

Parameters
ecThe error code value.
Returns
A descriptive error message.

◆ name()

const char * idfxx::error_category::name ( ) const
finaloverridenoexcept

Returns the name of the error category.

Returns
The category name.

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