minor: captch and decorate IllegalStateException derivatives

This commit is contained in:
Ilya Kaznacheev
2021-07-15 13:25:02 +03:00
parent 78106b5413
commit fc0a641b2d
@@ -43,7 +43,7 @@ public final class FileLockUtil {
flr.reserve();
return flr; // keep the old one
}
} catch (IOException e) {
} catch (IOException | IllegalStateException e) {
throw newUnableToAcquireSharedFileLockException(canonicalFile, e);
}
}