use rok_core::rok_exception;
rok_exception! {
pub struct E_MAIL_TRANSPORT_ERROR {
status = 500,
self_handled = true,
fields: { pub source: String }
}
}
rok_exception! {
pub struct E_SEND_FAILED {
status = 500,
self_handled = true,
fields: { pub recipient: String }
}
}
rok_exception! {
pub struct E_INVALID_MAILER_CONFIG {
status = 500,
self_handled = false,
fields: { pub detail: String }
}
}
rok_exception! {
pub struct E_MAIL_NOT_CONFIGURED {
status = 500,
self_handled = false,
fields: {
}
}
}