better exception throwing for sst/ldb files