worldinterface_http_trigger/
error.rs1use crate::types::WebhookId;
4
5#[derive(Debug, thiserror::Error)]
6pub enum WebhookError {
7 #[error("webhook path already registered: {0}")]
9 PathAlreadyRegistered(String),
10
11 #[error("webhook not found: {0}")]
13 WebhookNotFound(WebhookId),
14
15 #[error("no webhook registered for path: {0}")]
17 PathNotFound(String),
18
19 #[error("invalid webhook path: {0}")]
21 InvalidPath(String),
22
23 #[error("storage error: {0}")]
25 Storage(#[from] worldinterface_contextstore::ContextStoreError),
26
27 #[error("serialization error: {0}")]
29 Json(#[from] serde_json::Error),
30
31 #[error("flow submission error: {0}")]
33 Host(#[from] worldinterface_host::HostError),
34}