{input,storage}/nfs: use C++ exceptions instead of class Error

This commit is contained in:
Max Kellermann
2016-09-16 16:55:57 +02:00
parent 553365b942
commit 539c0ed171
15 changed files with 213 additions and 311 deletions

View File

@@ -26,9 +26,9 @@
#include <string.h>
void
NfsManager::ManagedConnection::OnNfsConnectionError(Error &&error)
NfsManager::ManagedConnection::OnNfsConnectionError(std::exception_ptr &&e)
{
FormatError(error, "NFS error on %s:%s", GetServer(), GetExportName());
FormatError(e, "NFS error on %s:%s", GetServer(), GetExportName());
/* defer deletion so the caller
(i.e. NfsConnection::OnSocketReady()) can still use this