openeruka 0.1.0

Open core types and traits for the Eruka context memory system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error types for openeruka.

use thiserror::Error;

#[derive(Debug, Error)]
pub enum ErukaError {
    #[error("invalid field path: {0}")]
    InvalidFieldPath(String),

    #[error("invalid knowledge state: {0}")]
    InvalidKnowledgeState(String),

    #[error("invalid confidence value: {0}")]
    InvalidConfidence(String),

    #[error("serialization error: {0}")]
    Serialization(#[from] serde_json::Error),
}