Is there a way to check, programatically, if an ASP.NET application's CustomErrors are set to Off?
<p>We usually catch unhandled exceptions in Global.asax, and then we redirect to a nice friendly error page. This is fine for the Live environment, but in our development environment we would like to check if CustomErrors are Off, and if so, just throw the ugly error.</p>

<p>Is there an easy way to check if CustomErrors are Off through code?</p>
