|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Error category for idfxx_net errors.
More...
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. | |
| std::error_condition | default_error_condition (int code) const noexcept override final |
Maps an errc value to its canonical portable condition. | |
Error category for idfxx_net errors.
Returns human-readable names for errc values and maps each code to its standard std::errc synonym via default_error_condition().
|
finaloverridenoexcept |
Maps an errc value to its canonical portable condition.
Returns the equivalent std::errc condition for codes that have a POSIX synonym (e.g. operation_would_block, connection_reset); codes without one (DNS failures, netconn_closed, …) map to a condition in this category. Because the runtime drives ==/!= comparisons between an std::error_code and an std::error_condition through this mapping, callers may compare against either form:
The mapping is symmetric, so two codes that share a synonym (connection_reset and netconn_reset) compare equal to the same std::errc and to each other's condition.
| code | The errc value to canonicalize. |
std::error_condition for code.
|
finaloverride |
Returns a human-readable message for the given error code.
Returns the name of the error category.