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

replacing Hmm... with something else