mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-11 19:45:00 +00:00
core: organize withAckMessage (#3889)
* core: organize withAckMessage * mark critical sections * differentiate DB internal error from chat * throw CRITICALs * only CRIT on SEDatabaseError * normalize errors * shift MonadError into ExceptT * simplify * split critical handlers * names, CRITICAL error in withAckMessage, comments * only show critical alerts when database was locked or busy and message failed to process --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
committed by
GitHub
parent
5fd8e6e4fe
commit
7fa2f2f72e
@@ -95,6 +95,8 @@ data StoreError
|
||||
| SEUniqueID
|
||||
| SELargeMsg
|
||||
| SEInternalError {message :: String}
|
||||
| SEDBException {message :: String}
|
||||
| SEDBBusyError {message :: String}
|
||||
| SEBadChatItem {itemId :: ChatItemId, itemTs :: Maybe ChatItemTs}
|
||||
| SEChatItemNotFound {itemId :: ChatItemId}
|
||||
| SEChatItemNotFoundByText {text :: Text}
|
||||
|
||||
Reference in New Issue
Block a user