added Error::last()

This commit is contained in:
Alex Fabijanic
2014-11-11 19:47:39 -06:00
parent 781acfa0bd
commit 8769ef01bc
2 changed files with 17 additions and 0 deletions

View File

@@ -33,9 +33,15 @@ class Foundation_API Error
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