PySparkException.
getErrorClass
Returns an error class as a string.
New in version 3.4.0.
See also
PySparkException.getMessageParameters()
PySparkException.getSqlState()