Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub enum FlowError {
AlreadyExists(String),
NotFound(String),
InvalidArgument(String),
ScopeStackEmpty,
GuardrailRejected(String),
Internal(String),
}
The error type for all NeMo Relay runtime operations.
Each variant represents a distinct failure mode that callers can match on to determine the appropriate recovery strategy.
AlreadyExists(String)AlreadyExists(String)
A resource with the given name is already registered.
Returned when attempting to register a guardrail, intercept, or subscriber with a name that is already in use. Deregister the existing entry first, or choose a different name.
NotFound(String)NotFound(String)
The requested resource was not found.
Returned when attempting to remove a scope handle by UUID that does not exist in the scope stack, or when looking up a non-existent entity.
InvalidArgument(String)InvalidArgument(String)
A function argument was invalid for the requested operation.
Returned when a provided value is well-formed but violates an API precondition, such as attempting to pop a scope that is not currently at the top of the stack.
ScopeStackEmptyScopeStackEmpty
The scope stack is empty.
This should not occur under normal operation because the root scope is always present and cannot be removed.
GuardrailRejected(String)GuardrailRejected(String)
A conditional execution guardrail rejected the operation.
The contained string is the rejection reason provided by the guardrail. This is returned during tool_call_execute or llm_call_execute when a conditional guardrail returns Some(reason).
Internal(String)Internal(String)
An internal runtime error (e.g., lock poisoning).
impl Debug for FlowErrorimpl Debug for FlowError
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for FlowErrorimpl Display for FlowError
fmtfn fmt(&self, __formatter: &mut Formatter<'_>) -> Result
impl Error for FlowErrorimpl Error for FlowError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
descriptionfn description(&self) -> &str
causefn cause(&self) -> Option<&dyn Error>
providefn provide<'a>(&'a self, request: &mut Request<'a>)
impl From<FlowError> for AtofExporterErrorimpl From<FlowError> for AtofExporterError
fromfn from(source: FlowError) -> Self
impl From<FlowError> for OpenInferenceErrorimpl From<FlowError> for OpenInferenceError
fromfn from(source: FlowError) -> Self
impl From<FlowError> for OpenTelemetryErrorimpl From<FlowError> for OpenTelemetryError
fromfn from(source: FlowError) -> Self