Table of Contents

Interface IErrorMessageStrategy

Namespace
Steeltoe.Integration.Support
Assembly
Steeltoe.Integration.Abstractions.dll

A strategy to build an ErrorMessage based on the provided Exception AttributeAccessor as a context.

public interface IErrorMessageStrategy

Methods

BuildErrorMessage(Exception, IAttributeAccessor)

Build the error message

ErrorMessage BuildErrorMessage(Exception payload, IAttributeAccessor attributes)

Parameters

payload Exception

the payload of the error message

attributes IAttributeAccessor

the context to use

Returns

ErrorMessage

the error message