handle ENOENT error

This commit is contained in:
Guenter Obiltschnig 2015-09-08 16:21:25 +02:00
parent d55eab9264
commit 515de4128f

View File

@ -1092,6 +1092,8 @@ void SocketImpl::error(int code, const std::string& arg)
throw IOException("Broken pipe", code);
case EBADF:
throw IOException("Bad socket descriptor", code);
case ENOENT:
throw IOException("Not found", arg, code);
#endif
default:
throw IOException(NumberFormatter::format(code), arg, code);