grpc/error.rs

bollard · src/grpc/error.rs · rust · Apache-2.0
infra, Infra / DevOps

Rust enum definitions for detailed gRPC error handling in BuildKit providerless mode.

#![cfg(feature = "buildkit_providerless")]
// Source: https://github.com/fussybeaver/bollard | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.

use std::{num::TryFromIntError, path::PathBuf};

/// Errors related to the Grpc functionality
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum GrpcError {
    /// A direct LLB definition could not be decoded or contains an unsupported
    /// direct-solve source configuration.
    #[error("invalid direct LLB definition at operation {index}: {reason}")]
    InvalidDefinition {
        /// The zero-based operation index in the definition.
        index: usize,
        /// The validation failure.
        reason: String,
    },
    

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key