photoncloud-monorepo/chainfire/chainfire-client/src/error.rs
centra 8f94aee1fa Fix R8: Convert submodule gitlinks to regular directories
- Remove gitlinks (160000 mode) for chainfire, flaredb, iam
- Add workspace contents as regular tracked files
- Update flake.nix to use simple paths instead of builtins.fetchGit

This resolves the nix build failure where submodule directories
appeared empty in the nix store.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 16:51:20 +09:00

34 lines
727 B
Rust

//! Client error types
use thiserror::Error;
/// Result type for client operations
pub type Result<T> = std::result::Result<T, ClientError>;
/// Client error
#[derive(Error, Debug)]
pub enum ClientError {
/// Connection error
#[error("Connection error: {0}")]
Connection(String),
/// RPC error
#[error("RPC error: {0}")]
Rpc(#[from] tonic::Status),
/// Transport error
#[error("Transport error: {0}")]
Transport(#[from] tonic::transport::Error),
/// Key not found
#[error("Key not found: {0}")]
KeyNotFound(String),
/// Watch error
#[error("Watch error: {0}")]
Watch(String),
/// Internal error
#[error("Internal error: {0}")]
Internal(String),
}