public ErrorMessageAttribute(string template)Initializes a new ErrorMessageAttribute with the given message template.
All Types / Ferrous
public sealed class ErrorMessageAttribute : Attribute
Annotates a [DiscriminatedUnion] variant factory method with a human-readable error message template (Rust thiserror #[error("...")] style). Placeholders matching parameter names (e.g., "{port}") are interpolated by the generated FormatError() and ToString() methods.
public ErrorMessageAttribute(string template)Initializes a new ErrorMessageAttribute with the given message template.
public string TemplateGets the error message template.