package lightblue:

exception BluetoothError (exceptions.IOError)

    Generic exception raised for Bluetooth errors. This is not raised for
    socket-related errors; socket objects raise the socket.error and 
    socket.timeout exceptions from the standard library socket module.
    Note that error codes are currently platform-independent. In particular, 
    the Mac OS X implementation returns IOReturn error values from the IOKit 
    framework, and OBEXError codes from <IOBluetooth/OBEX.h> for OBEX operations.