Source:
<code>public MzDBRawDataFile execute() throws MSDKException { Iterator<Spectrum> spectrumIterator; Spectrum eachSpectrum; SpectrumHeader eachSpectrumHeader; List<MsScan> msScanList = new ArrayList<>(); List<String> msFunctions = new ArrayList<>(); List<Chromatogram> chromatograms = new ArrayList<>(); SpectrumData eachSpectrumData; int scanNumber = 1; float eachSpectrumTime; try { MzDbReader currentFile = new MzDbReader(mzDBFile, cacheEntities); try { spectrumIterator = currentFile.getSpectrumIterator(); while (spectrumIterator.hasNext()) { eachSpectrum = spectrumIterator.next(); eachSpectrumHeader = eachSpectrum.getHeader(); eachSpectrumData = eachSpectrum.getData(); double mzList[] = eachSpectrumData.getMzList(); float intensityList[] = eachSpectrumData.getIntensityList(); SimpleMsScan eachSimpleMsScan = new SimpleMsScan(scanNumber); eachSimpleMsScan.setDataPoints(mzList, intensityList, mzList.length); msScanList.add(eachSimpleMsScan); scanNumber++; } } catch (StreamCorruptedException e) { throw new MSDKException("Stream corrupted, detected by mzDB"); } } catch (ClassNotFoundException e) { <START> throw new MSDKException("Class can't be found by mzDB"); <END> } catch (FileNotFoundException e) { throw new MSDKException("File Not Found / File present but inaccessible by mzDB"); } catch (SQLiteException e) { throw new MSDKException("SQLite Exception in mzDB"); } msFunctions.add("ms"); MzDBRawDataFile newRawFile = new MzDBRawDataFile(mzDBFile, msFunctions, msScanList, chromatograms); return newRawFile; }</code><technical_language>Please change new MSDKException("Class mzDB", e); (I added constructor MSDKException, pull new sources)</technical_language>

Target:
public MzDBRawDataFile execute() throws MSDKException { Iterator<Spectrum> spectrumIterator; Spectrum eachSpectrum; SpectrumHeader eachSpectrumHeader; List<MsScan> msScanList = new ArrayList<>(); List<String> msFunctions = new ArrayList<>(); List<Chromatogram> chromatograms = new ArrayList<>(); SpectrumData eachSpectrumData; int scanNumber = 1; float eachSpectrumTime; try { MzDbReader currentFile = new MzDbReader(mzDBFile, cacheEntities); try { spectrumIterator = currentFile.getSpectrumIterator(); while (spectrumIterator.hasNext()) { eachSpectrum = spectrumIterator.next(); eachSpectrumHeader = eachSpectrum.getHeader(); eachSpectrumData = eachSpectrum.getData(); double mzList[] = eachSpectrumData.getMzList(); float intensityList[] = eachSpectrumData.getIntensityList(); SimpleMsScan eachSimpleMsScan = new SimpleMsScan(scanNumber); eachSimpleMsScan.setDataPoints(mzList, intensityList, mzList.length); msScanList.add(eachSimpleMsScan); scanNumber++; } } catch (StreamCorruptedException e) { throw new MSDKException("Stream corrupted, detected by mzDB", e); } } catch (ClassNotFoundException e) { throw new MSDKException("Class can't be found by mzDB", e); } catch (FileNotFoundException e) { throw new MSDKException("File Not Found / File present but inaccessible by mzDB", e); } catch (SQLiteException e) { throw new MSDKException("SQLite Exception in mzDB", e); } msFunctions.add("ms"); MzDBRawDataFile newRawFile = new MzDBRawDataFile(mzDBFile, msFunctions, msScanList, chromatograms); return newRawFile; }