Skip to main content

Module Error

Module Error 

Source
Expand description

§Vine Error Handling (Air)

Air’s Vine errors. Re-exports the canonical [Vine::Error::VineError] and provides a thin compatibility layer (AirCompat) that maps Air’s variant-name aliases onto the canonical variants.

§Canonical variants

VineError exposes:

  • ClientNotConnected(String) - sidecar absent from pool
  • ConnectionFailed { SideCarIdentifier, Address, Reason }
  • ConnectionLost(String)
  • RPCError(String) - generic gRPC failure
  • RequestTimeout { SideCarIdentifier, MethodName, TimeoutMilliseconds }
  • RequestCanceled { SideCarIdentifier, MethodName }
  • SerializationError(serde_json::Error)
  • MessageTooLarge { ActualSize, MaxSize }
  • InvalidMessageFormat(String)
  • TonicTransportError(tonic::transport::Error)
  • InternalLockError(String)
  • InvalidState(String)
  • InvalidUri(http::uri::InvalidUri)
  • AddressParseError(std::net::AddrParseError)

Plus [VineError::IsRecoverable] / [VineError::ToTonicStatus] and From impls for every transport / serialization error in the stack.

§Air-flavour aliases

AirCompat exposes constructor helpers under Air’s prior variant names (Transport / Serialization / ClientNotConnected / Timeout / Authentication / Authorization / Internal) that build the equivalent canonical VineError value. Use the canonical constructors directly when adding new code; the aliases exist so older call sites continue to compile.

Structs§

AirCompat
Air-flavour compatibility constructors for the canonical VineError.

Type Aliases§

Result
Result<T, VineError> convenience alias.
VineError
Canonical Vine error type, re-exported from the Vine crate.