Kylin/Nng/ErrorCode.h

16 lines
344 B
C
Raw Normal View History

2024-11-10 20:20:34 +08:00
#ifndef __ERRORCODE_H__
#define __ERRORCODE_H__
#include <system_error>
namespace Nng {
class ErrorCategory : public std::error_category {
public:
const char *name() const noexcept final;
std::string message(int ev) const final;
};
std::error_code makeErrorCode(int code);
} // namespace Nng
#endif // __ERRORCODE_H__