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
Exceptionthe payload of the error message
attributes
IAttributeAccessorthe context to use
Returns
- ErrorMessage
the error message