blpapi.InvalidStateException

class blpapi.InvalidStateException(description, errorCode)

Bases: Exception

Invalid state exception.

This class defines an exception for calling methods on an object that is not in a valid state.

__init__(description, errorCode)

Create a blpapi exception

Parameters
  • description (str) – Description of the error

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