LLMException
If an exception occurs when LLM-DataDist APIs are called, an LLMException may be thrown. Currently, this class contains only the status_code API.
Applicability
Product |
Supported (Yes/No) |
|---|---|
Atlas 350 Accelerator Card |
No |
Yes |
|
Yes |
|
No |
|
No |
|
No |
Note: For the
Function Description
Obtains the error code of an exception. For details about the error code list, see LLMStatusCode.
Prototype
1 | status_code() |
Parameters
None
Example
1 2 3 4 5 6 7 | from llm_datadist import * ... cache_keys = [CacheKey(1, req_id=1), CacheKey(1, req_id=2)] try: kv_cache_manager.pull_cache(cache_keys[0], cache, 0) except LLMException as exe: print(exe.status_code) |
Returns
An error code is returned.
Constraints
None
Parent topic: API Reference