Add `AttackAttempt` error variant

This commit is contained in:
Alexey Galakhov 2023-09-22 17:48:31 +02:00
parent 53914c1180
commit f916b332a9
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ pub enum Error {
/// UTF coding error.
#[error("UTF-8 encoding error")]
Utf8,
/// Attack attempt detected.
#[error("Attack attempt detected")]
AttackAttempt,
/// Invalid URL.
#[error("URL error: {0}")]
Url(#[from] UrlError),