Skip to main content

Module error

Module error 

Source
Expand description

Error types for distributed operations.

§REQ status (per .design/ferrotorch-distributed/error.md)

Full evidence rows (impl + non-test production consumer + upstream cites) live in the design doc; this synopsis is a one-line summary per REQ.

REQStatusEvidence
REQ-1 (DistributedError enum)SHIPPEDpub enum DistributedError in error.rs with 11 #[non_exhaustive] variants; consumers use crate::error::DistributedError; in backend.rs, collective.rs, gloo_backend.rs.
REQ-2 (diagnostic fields per variant)SHIPPEDevery variant carries named fields rendered in #[error("...")] strings; verified by backend.rs tests (test_invalid_world_size, test_send_to_invalid_rank).
REQ-3 (From conversion)SHIPPEDimpl From<DistributedError> for FerrotorchError at the bottom of error.rs; consumers .into() at every fallible site in backend.rs and collective.rs.
REQ-4 (BackendUnavailable variant)SHIPPEDBackendUnavailable { backend: &'static str } variant in error.rs; consumers in gloo_backend.rs, mpi_backend.rs, ucc_backend.rs (feature-off construction paths).

Enums§

DistributedError
Errors specific to the distributed training subsystem.