vllm.exceptions ¶
Custom exceptions for vLLM.
Classes:
-
LoRAAdapterNotFoundError–Exception raised when a LoRA adapter is not found.
-
VLLMNotFoundError–vLLM-specific NotFoundError
-
VLLMUnprocessableEntityError–vLLM-specific error for unprocessable entity requests.
-
VLLMValidationError–vLLM-specific validation error for request validation failures.
LoRAAdapterNotFoundError ¶
Bases: VLLMNotFoundError
Exception raised when a LoRA adapter is not found.
This exception is thrown when a requested LoRA adapter does not exist in the system.
Attributes:
-
message(str) –The error message string describing the exception
Source code in vllm/exceptions.py
VLLMNotFoundError ¶
VLLMUnprocessableEntityError ¶
Bases: ValueError
vLLM-specific error for unprocessable entity requests.
This exception is raised when the request content is invalid or cannot be processed, such as when an image URL points to a non-existent or inaccessible resource (404, 403, DNS failure, etc.).
Parameters:
-
(message¶str) –The error message describing the unprocessable entity.
-
(parameter¶str | None, default:None) –Optional parameter name that failed validation.
-
(value¶Any, default:None) –Optional value that was rejected during validation.
Source code in vllm/exceptions.py
VLLMValidationError ¶
Bases: ValueError
vLLM-specific validation error for request validation failures.
Parameters:
-
(message¶str) –The error message describing the validation failure.
-
(parameter¶str | None, default:None) –Optional parameter name that failed validation.
-
(value¶Any, default:None) –Optional value that was rejected during validation.