Skip to main content

agentcat_sdk/
error.rs

1//! The error of the public calls of the SDK.
2
3/// Why a call of the SDK failed.
4#[derive(Debug, thiserror::Error)]
5#[non_exhaustive]
6pub enum Error {
7    /// A custom event was published on a handle that has no project ID.
8    #[error("project_id is required for publish_custom_event")]
9    ProjectIdRequired,
10}
11
12const _: () = {
13    const fn assert_send_sync_static<T: Send + Sync + 'static>() {}
14    assert_send_sync_static::<Error>();
15};