Spark Error/Exception Handling

Kristof
New Contributor III

I am creating new application and looking for ideas how to handle exceptions in Spark, for example ThreadPoolExecution.

Are there any good practice in terms of error handling and dealing with specific exceptions ?