[ 
https://issues.apache.org/jira/browse/SPARK-38986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Apache Spark reassigned SPARK-38986:
------------------------------------

    Assignee: Apache Spark  (was: Max Gekk)

> Prepend error class tag to error messages
> -----------------------------------------
>
>                 Key: SPARK-38986
>                 URL: https://issues.apache.org/jira/browse/SPARK-38986
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Assignee: Apache Spark
>            Priority: Major
>
> Prepend error messages by error class tags by extending the following method 
> in SparkThrowableHelper:
> {code:scala}
>   def getMessage(errorClass: String, messageParameters: Array[String]): 
> String = {
>     val errorInfo = errorClassToInfoMap.getOrElse(errorClass,
>       throw new IllegalArgumentException(s"Cannot find error class 
> '$errorClass'"))
>     String.format(errorInfo.messageFormat.replaceAll("<[a-zA-Z0-9_-]+>", 
> "%s"),
>       messageParameters: _*)
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to