Function FileBasedLock.lockThrow

Attempts to lock the file and throws exception if unsuccessful

void lockThrow();

Throws

Exception if the process couldn't lock the file