Safe Haskell | None |
---|---|
Language | Haskell2010 |
The message type that is written to failure streams when using the writeToCategory
FailureStrategy
.
Synopsis
- data FailedMessage = FailedMessage {}
- data FailureReason
- messageType :: MessageType
- handleFailures :: Handlers output -> Handlers output
Documentation
data FailedMessage Source #
A message that was unable to be handled.
Instances
Eq FailedMessage Source # | |
Defined in MessageDb.Subscription.FailedMessage (==) :: FailedMessage -> FailedMessage -> Bool # (/=) :: FailedMessage -> FailedMessage -> Bool # | |
Show FailedMessage Source # | |
Defined in MessageDb.Subscription.FailedMessage showsPrec :: Int -> FailedMessage -> ShowS # show :: FailedMessage -> String # showList :: [FailedMessage] -> ShowS # | |
ToJSON FailedMessage Source # | |
Defined in MessageDb.Subscription.FailedMessage toJSON :: FailedMessage -> Value # toEncoding :: FailedMessage -> Encoding # toJSONList :: [FailedMessage] -> Value # toEncodingList :: [FailedMessage] -> Encoding # | |
FromJSON FailedMessage Source # | |
Defined in MessageDb.Subscription.FailedMessage parseJSON :: Value -> Parser FailedMessage # parseJSONList :: Value -> Parser [FailedMessage] # |
data FailureReason Source #
Reason why the message handle failed.
Instances
messageType :: MessageType Source #
The message type of a FailedMessage
.
handleFailures :: Handlers output -> Handlers output Source #
If you have a stream of FailedMessage
messages, then you can use
this function so you can handle the original messages that failed.