macro_rules! generate_to_error_code {
    ($self: expr, $error_type:ident, $start_id: expr) => { ... };
}