Mercurial > hg > piper-cpp
diff vamp-client/ProcessQtTransport.h @ 121:56e537a7bb99
Error handling
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 27 Oct 2016 14:01:35 +0100 |
parents | 5876f3e9c677 |
children | 2380d5865355 |
line wrap: on
line diff
--- a/vamp-client/ProcessQtTransport.h Thu Oct 27 13:42:07 2016 +0100 +++ b/vamp-client/ProcessQtTransport.h Thu Oct 27 14:01:35 2016 +0100 @@ -142,8 +142,7 @@ std::cerr << "Server failed during request with error code " << err << std::endl; } - //!!! + catch - throw std::runtime_error("Piper server exited unexpectedly"); + throw ServerCrashed(); } } else { size_t formerSize = buffer.size();