MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / RPCError

Class RPCError

tensorrt_llm/executor/rpc/rpc_common.py:33–48  ·  view source on GitHub ↗

Custom exception for RPC-related errors raised on the client side. Args: message: The error message. cause: The original exception that caused this error. traceback: The traceback of the exception.

Source from the content-addressed store, hash-verified

31
32# --- Custom Exceptions ---
33class RPCError(Exception):
34 """Custom exception for RPC-related errors raised on the client side.
35
36 Args:
37 message: The error message.
38 cause: The original exception that caused this error.
39 traceback: The traceback of the exception.
40 """
41
42 def __init__(self,
43 message: str,
44 cause: Optional[Exception] = None,
45 traceback: Optional[str] = None):
46 super().__init__(message)
47 self.cause = cause
48 self.traceback = traceback
49
50
51class RPCTimeout(RPCError):

Callers 1

_process_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected