Exceptions
xbbg.exceptions
Section titled “xbbg.exceptions”Bloomberg API exceptions.
Canonical exception classes are defined by the Rust extension module
(xbbg._core) and re-exported here for a stable Python import path.
Python-only exceptions should be additive and inherit from the Rust base.
BlpRequestError Objects
Section titled “BlpRequestError Objects”class BlpRequestError(_core.BlpRequestError)Bloomberg request-level error with extended request context attributes.
BlpSecurityError Objects
Section titled “BlpSecurityError Objects”class BlpSecurityError(BlpRequestError)Bloomberg security-level error (request failed for a specific security).
BlpFieldError Objects
Section titled “BlpFieldError Objects”class BlpFieldError(BlpRequestError)Bloomberg field-level error (request failed for a specific field).
BlpBPipeError Objects
Section titled “BlpBPipeError Objects”class BlpBPipeError(BlpError)B-PIPE license required for this operation.
Raised when attempting to use features that require Bloomberg B-PIPE license but only a standard Terminal connection is available.
B-PIPE features include: - Level 2 market depth data (depth/adepth) - Option and futures chains (chains/achains)
BlpValidationError Objects
Section titled “BlpValidationError Objects”class BlpValidationError(_core.BlpValidationError)Bloomberg validation error with element and suggestion metadata.
from_rust_error
Section titled “from_rust_error”@classmethoddef from_rust_error(cls, message: str) -> BlpValidationErrorConstruct a BlpValidationError by parsing metadata from a Rust error message.