Skip to content

Exceptions

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

python
class BlpRequestError(_core.BlpRequestError)

Bloomberg request-level error with extended request context attributes.

BlpSecurityError Objects

python
class BlpSecurityError(BlpRequestError)

Bloomberg security-level error (request failed for a specific security).

BlpFieldError Objects

python
class BlpFieldError(BlpRequestError)

Bloomberg field-level error (request failed for a specific field).

BlpBPipeError Objects

python
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

python
class BlpValidationError(_core.BlpValidationError)

Bloomberg validation error with element and suggestion metadata.

from_rust_error

python
@classmethod
def from_rust_error(cls, message: str) -> BlpValidationError

Construct a BlpValidationError by parsing metadata from a Rust error message.

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.