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

MessageDb.Subscription.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)))

ignoreFailures :: FailureStrategy Source #

Do nothing, ignore all failures.

writeToCategory :: (FailureReason -> Bool) -> WithConnection -> Category -> FailureStrategy Source #

Write a failure to a category. Use shouldKeep to filter out message failures you don't want to log.

writeUnknownFailuresToCategory :: WithConnection -> Category -> FailureStrategy Source #

Only write UnknownFailures to a category.

writeAllToCategory :: WithConnection -> Category -> FailureStrategy Source #

Write either UnknownFailures or HandleFailures to a category.