#[non_exhaustive]pub enum PluginError {
Show 16 variants
EvalTimeout {
timeout_secs: u64,
},
EvalFailed {
message: String,
},
EvalConcurrencyExceeded {
limit: usize,
},
BridgeError {
message: String,
},
ScreenshotFailed {
message: String,
},
AuthenticationFailed {
message: String,
},
RateLimitExceeded,
ToolDisabled {
tool_name: String,
},
CommandBlocked {
command: String,
},
WindowNotFound {
label: String,
},
ServerStartFailed {
message: String,
},
PortInUse {
port: u16,
},
Serialization(Error),
Io(Error),
InvalidUrl {
message: String,
},
Core(VictauriError),
}Expand description
Errors that can occur during MCP server operation, tool execution, or webview interaction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EvalTimeout
A JavaScript eval timed out waiting for a response from the webview.
EvalFailed
A JavaScript eval returned an error from the webview.
EvalConcurrencyExceeded
Too many concurrent eval requests are pending.
BridgeError
The webview bridge returned an error.
ScreenshotFailed
Screenshot capture failed.
AuthenticationFailed
Bearer-token authentication failed.
RateLimitExceeded
The rate limiter rejected the request.
ToolDisabled
The requested tool is disabled by the privacy configuration.
CommandBlocked
The requested command is blocked by the privacy configuration.
WindowNotFound
No window with the given label was found.
ServerStartFailed
The MCP server failed to start (e.g., all ports in use).
PortInUse
The configured port is already bound by another process.
Serialization(Error)
JSON serialization or deserialization failed.
Io(Error)
An I/O operation failed.
InvalidUrl
A URL failed validation.
Core(VictauriError)
An error propagated from the victauri-core crate.
Trait Implementations§
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()