A simple utility that helps throw exceptions.