Add `AttackAttempt` error variant
This commit is contained in:
parent
53914c1180
commit
f916b332a9
|
@ -59,6 +59,9 @@ pub enum Error {
|
||||||
/// UTF coding error.
|
/// UTF coding error.
|
||||||
#[error("UTF-8 encoding error")]
|
#[error("UTF-8 encoding error")]
|
||||||
Utf8,
|
Utf8,
|
||||||
|
/// Attack attempt detected.
|
||||||
|
#[error("Attack attempt detected")]
|
||||||
|
AttackAttempt,
|
||||||
/// Invalid URL.
|
/// Invalid URL.
|
||||||
#[error("URL error: {0}")]
|
#[error("URL error: {0}")]
|
||||||
Url(#[from] UrlError),
|
Url(#[from] UrlError),
|
||||||
|
|
Loading…
Reference in New Issue