pyspark.sql.streaming.StreamingQuery.exception# StreamingQuery.exception()[source]# New in version 2.1.0. Changed in version 3.5.0: Supports Spark Connect. Returns StreamingQueryExceptionthe StreamingQueryException if the query was terminated by an exception, or None.