blpapi.IndexOutOfRangeException

class blpapi.IndexOutOfRangeException(description, errorCode)

Bases: Exception

Index out of range exception.

This class defines an exception to capture the error when an invalid index is used for an operation that needs index.

__init__(description, errorCode)

Create a blpapi exception

Parameters:
  • description (str) – Description of the error

  • errorCode (Optional[int]) – Code corresponding to the error