Centralised handler for errors that arise when a Spark component is used unexpectedly. Implementations can log in production or crash in development.