/** * \file * \author Egor Tensin * \date 2015 * \copyright This file is licensed under the terms of the MIT License. * See LICENSE.txt for details. */ #pragma once #include "common.hpp" #include "singleton.hpp" #include #include namespace libservice { class WindowsErrorCategory : public std::error_category , public Singleton { public: const char* name() const LIBSERVICE_NOEXCEPT { return "Windows"; } std::string message(int) const; private: friend class Singleton; }; } #define LIBSERVICE_ERROR_PREFIX \ "Error in function '" LIBSERVICE_FUNCTION_NAME "' at file '" LIBSERVICE_FILE_PATH "', line " LIBSERVICE_LINE_NUMBER_STRING