Can you make this a SparkExcepation? All expected exceptions thrown by Spark should be SparkException.