Interface IErrorMessageSource
A store of translated error messages keyed by Code — usually one package's .resx files
(ResourceErrorMessageSource), but any store works (database, JSON).
Namespace: ZhEaIsNsAaBn.Utilities
Assembly: ZhEaIsNsAaBn.LayerResponse.dll
Syntax
public interface IErrorMessageSource
Methods
Find(string, CultureInfo)
The message for code in exactly culture — no fallback to parent cultures.
Declaration
string? Find(string code, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| string | code | The error code, e.g. |
| CultureInfo | culture | The culture; InvariantCulture asks for the neutral (English) text. |
Returns
| Type | Description |
|---|---|
| string | The message template, or null when this source has none for that culture. |