How do I throw an error of a specific type and reason?