I would like to throw a custom error to stop a component from publishing. In Tridion 5.3 the following was working:
throw new Exception("This is a custom error message");
In Tridion 2011, the component does fail, but in the Publish Transaction window I see only the following message:
"The number of render failures has exceeded its specified failure limit of 0."