use thiserror::Error;
{% for v in vos %}
{% if not loop.first %}
{% endif %}#[derive(Debug, Error)]
pub enum Error{{ v.vo }} {
{%- if v.composite %}
/// Un campo obligatorio vacío: su nombre.
#[error("nucleo.{{ v.vo_snake }}.{0}_vacio")]
Vacio(&'static str),
{%- else %}
#[error("nucleo.{{ v.vo_snake }}_invalido")]
Invalido,
{%- endif %}
}{% endfor %}