pyspark.sql.functions.raise_error

pyspark.sql.functions.raise_error(errMsg)[source]

Throws an exception with the provided error message.

New in version 3.1.