pyspark.sql.streaming.StreamingQuery.exception

StreamingQuery.exception()[source]
Returns

the StreamingQueryException if the query was terminated by an exception, or None.

New in version 2.1.