A succinct example showing a function that unconditionally raises a custom error.