ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Storage.LeiosDB.Exception

Synopsis

Documentation

data LeiosDbFailure Source #

A database operation failed where it ran.

Instances

Instances details
Show LeiosDbFailure Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.LeiosDB.Exception

data LeiosDbWriteFailure Source #

A submitted write failed, as whoever awaits it sees it. A write runs on the writer rather than at its call site, so it knows what a read never can: which write it was, and where it was submitted from.

throwLeiosDbException ∷ (HasCallStack, MonadThrow m) ⇒ String → m a Source #

Fail with a LeiosDbException carrying the call stack. Preferred over error: an invariant the database broke is still a database failure, and callers catch it as one.