pymel.core.language.getLastError

getLastError(*args, **kwargs)

Derived from mel command maya.cmds.getLastError