Move error messages into the raised exceptions.