web_message/
error.rs

1#[derive(thiserror::Error, Debug)]
2pub enum Error {
3	#[error("missing '{0}' field")]
4	MissingField(&'static str),
5
6	#[error("invalid '{0}' field")]
7	InvalidField(&'static str),
8
9	#[error("unexpected length")]
10	UnexpectedLength,
11
12	#[error("unexpected type")]
13	UnexpectedType,
14
15	#[error("unknown tag")]
16	UnknownTag,
17
18	#[cfg(feature = "Url")]
19	#[error("invalid URL: {0}")]
20	InvalidUrl(url::ParseError),
21}