MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / _backend_error

Function _backend_error

switchyard_rust/core.py:457–462  ·  view source on GitHub ↗

Wrap backend failures in the public Switchyard backend error.

(error: BaseException)

Source from the content-addressed store, hash-verified

455
456
457def _backend_error(error: BaseException) -> RuntimeError:
458 """Wrap backend failures in the public Switchyard backend error."""
459 native = _load_native()
460 if isinstance(error, native.SwitchyardRuntimeError):
461 return error
462 return native.SwitchyardBackendError(str(error))
463
464
465class Switchyard:

Callers 1

_call_backend_stageMethod · 0.85

Calls 1

_load_nativeFunction · 0.70

Tested by

no test coverage detected