Skip to main content

pdk_cache_lib/
error.rs

1// Copyright (c) 2026, Salesforce, Inc.,
2// All rights reserved.
3// For full license text, see the LICENSE.txt file
4
5//! Possible errors encountered during the usage of  a [`crate::Cache`]
6
7use thiserror::Error;
8
9/// Describes the errors encountered during the development with a [`crate::Cache`]
10#[derive(Error, Debug)]
11pub enum CacheError {
12    #[error("Error saving data in cache {cache_id:?}: {status:?}")]
13    SaveError { status: String, cache_id: String },
14}