Interface IErrorMessageStrategy
A strategy to build an ErrorMessage based on the provided Exception AttributeAccessor as a context.
Namespace: Steeltoe.Integration.Support
Assembly: Steeltoe.Integration.Abstractions.dll
Syntax
public interface IErrorMessageStrategy
Methods
| Edit this page View SourceBuildErrorMessage(Exception, IAttributeAccessor)
Build the error message
Declaration
ErrorMessage BuildErrorMessage(Exception payload, IAttributeAccessor attributes)
Parameters
Type | Name | Description |
---|---|---|
Exception | payload | the payload of the error message |
IAttributeAccessor | attributes | the context to use |
Returns
Type | Description |
---|---|
ErrorMessage | the error message |