mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vfs] IJPL-175305: add diagnostics
GitOrigin-RevId: 393fee7d599839fdc7e4e3bd1653bb93d2838260
This commit is contained in:
committed by
intellij-monorepo-bot
parent
814332c821
commit
30ef0f556f
+6
-2
@@ -855,7 +855,9 @@ public final class PersistentFSRecordsLockFreeOverMMappedFile implements Persist
|
||||
private void checkRecordIdIsValid(int recordId) throws IndexOutOfBoundsException {
|
||||
if (!isValidFileId(recordId)) {
|
||||
throw new IndexOutOfBoundsException(
|
||||
"recordId(=" + recordId + ") is outside of allocated IDs range (0, " + maxAllocatedID() + "]");
|
||||
"recordId(=" + recordId + ") is outside of allocated IDs range (0, " + maxAllocatedID() + "], " +
|
||||
"(wasClosedProperly: " + wasClosedProperly() + ")"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -866,7 +868,9 @@ public final class PersistentFSRecordsLockFreeOverMMappedFile implements Persist
|
||||
}
|
||||
if (!isValidFileId(parentId)) {
|
||||
throw new IndexOutOfBoundsException(
|
||||
"parentId(=" + parentId + ") is outside of allocated IDs range [0, " + maxAllocatedID() + "]");
|
||||
"parentId(=" + parentId + ") is outside of allocated IDs range [0, " + maxAllocatedID() + "], " +
|
||||
"(wasClosedProperly: " + wasClosedProperly() + ")"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user