Attribute Macro structure_error

Source
#[structure_error]
Expand description

Custom error attribute macro, replaces the struct form errors in the original define_custom_errors! macro

ยงExample

use cmark_writer_macros::structure_error;

#[structure_error(format = "Table column mismatch: {}")]
struct TableColumnMismatchError(pub &'static str);