message-db-0.0.1.0: Client library for Message-DB installed in PostgreSQL.
Safe HaskellNone
LanguageHaskell2010

MessageDb.Subscription.FailedMessage

Description

The message type that is written to failure streams when using the writeToCategory FailureStrategy.

Synopsis

Documentation

data FailureReason Source #

Reason why the message handle failed.

Instances

Instances details
Eq FailureReason Source # 
Instance details

Defined in MessageDb.Subscription.FailedMessage

Show FailureReason Source # 
Instance details

Defined in MessageDb.Subscription.FailedMessage

Generic FailureReason Source # 
Instance details

Defined in MessageDb.Subscription.FailedMessage

Associated Types

type Rep FailureReason :: Type -> Type #

ToJSON FailureReason Source # 
Instance details

Defined in MessageDb.Subscription.FailedMessage

FromJSON FailureReason Source # 
Instance details

Defined in MessageDb.Subscription.FailedMessage

Exception FailureReason Source # 
Instance details

Defined in MessageDb.Subscription.FailedMessage

type Rep FailureReason Source # 
Instance details

Defined in MessageDb.Subscription.FailedMessage

type Rep FailureReason = D1 ('MetaData "FailureReason" "MessageDb.Subscription.FailedMessage" "message-db-0.0.1.0-inplace" 'False) (C1 ('MetaCons "HandleFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HandleError)) :+: C1 ('MetaCons "UnknownFailure" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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.