Uni/Strerror#

Thread/memory safe wrapper for strerror.

Info

To use declarations from this page, include the <essence/uni/strerror.hpp> header.

They are found within the essence::uni namespace.

std::string uni::strerror(i32 no)#

Calls the thread-safe variant of strerror for the error number no.

std::string uni::strerror()#

Calls the thread-safe variant of strerror for the current errno.

class exception : public std::exception#

Exception leveraging the errno and strerror facilities.

exception::exception()#

Constructor using the value of errno.

exception::exception(i32 n)#

Constructor using the error number n.

exception::exception(i32 n, std::string_view msg)#

Constructor using error number n, with additional message msg.

template<typename ...Args>
exception::exception(i32 n, std::string_view msg, Args&&... args)#

Constructor using error number n, with additional message msg with std::format arguments args applied.