@@ -0,0 +1,898 @@
+package io.domisum.lib.auxiliumlib.exceptions;%0A%0Aimport io.domisum.lib.auxiliumlib.util.FileUtil;%0Aimport io.domisum.lib.auxiliumlib.util.FileUtil.FileType;%0Aimport lombok.AccessLevel;%0Aimport lombok.NoArgsConstructor;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport java.io.File;%0A%0A@NoArgsConstructor(access = AccessLevel.PRIVATE)%0Apublic final class PreviousCrashWarner%0A%7B%0A%09%0A%09private static final Logger LOGGER = LoggerFactory.getLogger(PreviousCrashWarner.class);%0A%09%0A%09%0A%09public static void warnAboutPreviousCrashes()%0A%09%7B%0A%09%09var baseDir = new File(%22dummy.txt%22).getAbsoluteFile().getParentFile();%0A%09%09var files = FileUtil.listFilesFlat(baseDir, FileType.FILE);%0A%09%09%0A%09%09for(var file : files)%0A%09%09%7B%0A%09%09%09String extension = FileUtil.getExtension(file);%0A%09%09%09if(%22hprof%22.equalsIgnoreCase(extension))%0A%09%09%09%09LOGGER.error(%22Found HPROF file in run directory, indicating previous crash from OomError%22);%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

Add PreviousCrashWarner