chromedriver_api/
error.rs1use macron::{ Display, Error, From };
2
3pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
5
6#[derive(Debug, Display, Error, From)]
8pub enum Error {
9 #[display = "Incorrect session ID"]
10 IncorrectSessionId,
11
12 #[display = "Incorrect window handle"]
13 IncorrectWindowHandle,
14
15 #[display = "Incorrect window handles list"]
16 IncorrectWindowHandles,
17
18 #[display = "No window handles found"]
19 NoWindowHandles,
20
21 #[display = "Failed to connect to CDP (Chrome DevTools Protocol)"]
22 CdpConnectionFailed,
23
24 #[display = "CDP command execution failed"]
25 CdpCommandFailed,
26
27 #[display = "Element not found for the given selector"]
28 ElementNotFound
29}