1use rok_core::rok_exception;
2
3rok_exception! {
4 pub struct E_MAIL_TRANSPORT_ERROR {
6 status = 500,
7 self_handled = true,
8 fields: { pub source: String }
9 }
10}
11
12rok_exception! {
13 pub struct E_SEND_FAILED {
15 status = 500,
16 self_handled = true,
17 fields: { pub recipient: String }
18 }
19}
20
21rok_exception! {
22 pub struct E_INVALID_MAILER_CONFIG {
24 status = 500,
25 self_handled = false,
26 fields: { pub detail: String }
27 }
28}
29
30rok_exception! {
31 pub struct E_MAIL_NOT_CONFIGURED {
33 status = 500,
34 self_handled = false,
35 fields: {
36 }
37 }
38}