blpapi.Exception#

class blpapi.Exception(description, errorCode)#

Bases: Exception

This class defines a base exception for blpapi operations.

Objects of this class contain the error description for the exception.

__init__(description, errorCode)#

Create a blpapi exception

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

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

add_note(object, /)#

Exception.add_note(note) – add a note to the exception