diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/Foundation/include/Poco/Error.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Foundation/include/Poco/Error.h')
-rw-r--r-- | contrib/libs/poco/Foundation/include/Poco/Error.h | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/contrib/libs/poco/Foundation/include/Poco/Error.h b/contrib/libs/poco/Foundation/include/Poco/Error.h index 27fb66079a..935ee22343 100644 --- a/contrib/libs/poco/Foundation/include/Poco/Error.h +++ b/contrib/libs/poco/Foundation/include/Poco/Error.h @@ -1,52 +1,52 @@ -// -// Error.h -// -// Library: Foundation -// Package: Core -// Module: Error -// -// Definition of the Error class. -// -// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. -// and Contributors. -// -// SPDX-License-Identifier: BSL-1.0 -// - - -#ifndef Foundation_Error_INCLUDED -#define Foundation_Error_INCLUDED - - -#include "Poco/Foundation.h" - - -namespace Poco { - - -class Foundation_API Error - /// The Error class provides utility functions - /// for error reporting. -{ -public: - -#ifdef POCO_OS_FAMILY_WINDOWS - static DWORD last(); - /// Utility function returning the last error. - - static std::string getMessage(DWORD errorCode); - /// Utility function translating numeric error code to string. -#else - static int last(); - /// Utility function returning the last error. - - static std::string getMessage(int errorCode); - /// Utility function translating numeric error code to string. -#endif -}; - - -} // namespace Poco - - -#endif // Foundation_Error_INCLUDED +// +// Error.h +// +// Library: Foundation +// Package: Core +// Module: Error +// +// Definition of the Error class. +// +// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. +// and Contributors. +// +// SPDX-License-Identifier: BSL-1.0 +// + + +#ifndef Foundation_Error_INCLUDED +#define Foundation_Error_INCLUDED + + +#include "Poco/Foundation.h" + + +namespace Poco { + + +class Foundation_API Error + /// The Error class provides utility functions + /// for error reporting. +{ +public: + +#ifdef POCO_OS_FAMILY_WINDOWS + static DWORD last(); + /// Utility function returning the last error. + + static std::string getMessage(DWORD errorCode); + /// Utility function translating numeric error code to string. +#else + static int last(); + /// Utility function returning the last error. + + static std::string getMessage(int errorCode); + /// Utility function translating numeric error code to string. +#endif +}; + + +} // namespace Poco + + +#endif // Foundation_Error_INCLUDED |