diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/libs/poco/Foundation/include/Poco/Error.h | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 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 935ee22343..27fb66079a 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 |