on master help sign in
Add comment about TransactionCancelled in simple client API
commit14db627aeafa1cb9f34f7f2403c2ae8042d2b10e author3noch <eacameron@gmail.com> dateFri 15 Sep 2017, 17:34 (9 years ago) parente7e3cf2
1 file changed+2
src/lib/ProjectM36/Client/Simple.hs+2
src/lib/ProjectM36/Client/Simple.hs+2
@@ -40,6 +40,8 @@ type DbConn = (C.SessionId, C.Connection)
4040newtype Db a = Db {runDb :: ReaderT DbConn IO a}
4141 deriving (Functor, Applicative, Monad, MonadIO)
4242
43+-- This exception type should never be observable by the API users.
44+-- It merely carries errors which end up as RelError at the end of a transaction.
4345newtype TransactionCancelled = TransactionCancelled DbError deriving Show
4446instance Exception TransactionCancelled
4547