Describe the bug
The public API exposes the SnapshotCorruptedError type but, probably wisely, does not expose FileCorruptedError or FileFormat.
Expected behavior
The type hierarchy is exported in its entirety.
Suggested change
Create a SnapshotCorruptedError type in Database.LSMTree that contains a SnapshotName, a FsErrorPath, and an error message, and repackage the internal SnapshotCorruptedError into this type. Likewise, create a simple SnapshotCorruptedError type in Database.LSMTree.Simple that replaces the FsErrorPath with a FilePath and repackage the full SnapshotCorruptedError into the simple SnapshotCorruptedError.
Describe the bug
The public API exposes the
SnapshotCorruptedErrortype but, probably wisely, does not exposeFileCorruptedErrororFileFormat.Expected behavior
The type hierarchy is exported in its entirety.
Suggested change
Create a
SnapshotCorruptedErrortype inDatabase.LSMTreethat contains aSnapshotName, aFsErrorPath, and an error message, and repackage the internalSnapshotCorruptedErrorinto this type. Likewise, create a simpleSnapshotCorruptedErrortype inDatabase.LSMTree.Simplethat replaces theFsErrorPathwith aFilePathand repackage the fullSnapshotCorruptedErrorinto the simpleSnapshotCorruptedError.