@@ -191,23 +191,24 @@ instance NFData (MonoidalCursor m k v) where
191191
192192-- TODO: give this a nicer Show instance.
193193data LSMTreeError =
194+ -- | The session directory does not exist.
194195 SessionDirDoesNotExist FsErrorPath
195- -- | The session directory is already locked
196- | SessionDirLocked FsErrorPath
197- -- | The session directory is malformed: the layout of the session directory
196+ | -- | The session directory is already locked
197+ SessionDirLocked FsErrorPath
198+ | -- | The session directory is malformed: the layout of the session directory
198199 -- contains unexpected files and/or directories.
199- | SessionDirMalformed FsErrorPath
200- -- | All operations on a closed session as well as tables or cursors within
200+ SessionDirMalformed FsErrorPath
201+ | -- | All operations on a closed session as well as tables or cursors within
201202 -- a closed session will throw this exception. There is one exception (pun
202203 -- intended) to this rule: the idempotent operation
203204 -- 'Database.LSMTree.Common.closeSession'.
204- | ErrSessionClosed
205- -- | All operations on a closed table will throw this exception, except for
205+ ErrSessionClosed
206+ | -- | All operations on a closed table will throw this exception, except for
206207 -- the idempotent operation 'Database.LSMTree.Common.close'.
207- | ErrTableClosed
208- -- | All operations on a closed cursor will throw this exception, except for
208+ ErrTableClosed
209+ | -- | All operations on a closed cursor will throw this exception, except for
209210 -- the idempotent operation 'Database.LSMTree.Common.closeCursor'.
210- | ErrCursorClosed
211+ ErrCursorClosed
211212 | ErrSnapshotExists SnapshotName
212213 | ErrSnapshotDoesNotExist SnapshotName
213214 | ErrSnapshotDeserialiseFailure DeserialiseFailure SnapshotName
@@ -219,9 +220,9 @@ data LSMTreeError =
219220 SnapshotName
220221 SnapshotLabel -- ^ Expected label
221222 SnapshotLabel -- ^ Actual label
222- -- | Something went wrong during batch lookups.
223- | ErrLookup ByteCountDiscrepancy
224- -- | A 'BlobRef' used with 'retrieveBlobs' was invalid.
223+ | -- | Something went wrong during batch lookups.
224+ ErrLookup ByteCountDiscrepancy
225+ | -- | A 'BlobRef' used with 'retrieveBlobs' was invalid.
225226 --
226227 -- 'BlobRef's are obtained from lookups in a 'Table', but they may be
227228 -- invalidated by subsequent changes in that 'Table'. In general the
@@ -232,16 +233,15 @@ data LSMTreeError =
232233 --
233234 -- The 'Int' index indicates which 'BlobRef' was invalid. Many may be
234235 -- invalid but only the first is reported.
235- | ErrBlobRefInvalid Int
236- -- | 'unions' was called on tables that are not of the same type.
237- | ErrUnionsTableTypeMismatch
236+ ErrBlobRefInvalid Int
237+ | -- | 'unions' was called on tables that are not of the same type.
238+ ErrUnionsTableTypeMismatch
238239 Int -- ^ Vector index of table @t1@ involved in the mismatch
239240 Int -- ^ Vector index of table @t2@ involved in the mismatch
240- -- | 'unions' was called on tables that are not in the same session.
241- | ErrUnionsSessionMismatch
241+ | -- | 'unions' was called on tables that are not in the same session.
242+ ErrUnionsSessionMismatch
242243 Int -- ^ Vector index of table @t1@ involved in the mismatch
243244 Int -- ^ Vector index of table @t2@ involved in the mismatch
244- -- | 'unions' was called on tables that do not have the same configuration.
245245 deriving stock (Show , Eq )
246246 deriving anyclass (Exception )
247247
0 commit comments