blpapi.InvalidStateException

class blpapi.InvalidStateException(description, errorCode)

Bases: blpapi.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 (int) – Code corresponding to the error