Hello,
Are static exception instances safe to use? Any good reason to avoid the following?
public class ResourceHttpHandler : IHttpHandler
{
private static HttpException notFoundException =
new HttpException(
(int)HttpStatusCode.NotFound,
"Assembly Not Found");
public bool IsReusable
{
get { return true; }
}
public void ProcessRequest(HttpContext context)
{
....
throw notFoundException;
....
}
}