Make this a SparkException instead