Clean up configure options and add support for conditional building of Poco components beyond core/foundation. Tested with windows, MinGW and Linux.

This commit is contained in:
Chris Johnson
2008-09-23 17:10:08 +00:00
parent 0f2fa0aae6
commit d244df7f81
3 changed files with 67 additions and 13 deletions

View File

@@ -394,6 +394,21 @@ void FileImpl::handleLastErrorImpl(const std::string& path)
throw CreateFileException(path);
case ERROR_DIR_NOT_EMPTY:
throw FileException("directory not empty", path);
case ERROR_WRITE_FAULT:
throw WriteFileException(path);
case ERROR_READ_FAULT:
throw ReadFileException(path);
case ERROR_SHARING_VIOLATION:
throw FileException("sharing violation", path);
case ERROR_LOCK_VIOLATION:
throw FileException("lock violation", path);
case ERROR_HANDLE_EOF:
throw ReadFileException("EOF reached", path);
case ERROR_HANDLE_DISK_FULL:
case ERROR_DISK_FULL:
throw WriteFileException("disk is full", path);
case ERROR_NEGATIVE_SEEK:
throw FileException("negative seek", path);
default:
throw FileException(path);
}