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

Error category for WiFi errors. More...

Inheritance diagram for idfxx::wifi::error_category:

Public Member Functions

const charname () 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.
 
bool equivalent (int code, const std::error_condition &condition) const noexcept override final
 Tests whether an errc value is equivalent to a standard condition.
 

Detailed Description

Error category for WiFi errors.

Definition at line 661 of file wifi.hpp.

Member Function Documentation

◆ equivalent()

bool idfxx::wifi::error_category::equivalent ( int  code,
const std::error_condition &  condition 
) const
finaloverridenoexcept

Tests whether an errc value is equivalent to a standard condition.

Allows callers to compare a WiFi error code against either the domain-specific errc value or the portable std::errc synonym, e.g.

ec == std::errc::value_too_large
std::expected< T, std::error_code > result
result type wrapping a value or error code.
Definition error.hpp:120

are both true for the same underlying error.

Parameters
codeThe errc value being compared.
conditionThe condition being compared against.
Returns
True if code is equivalent to condition.

◆ message()

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

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

◆ name()

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

Returns the name of the error category.


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