A function that unconditionally raises a custom error.