public ErrorPage(Server server, Request request, Exception e) { if (e == null) e = new NullReferenceException("Error page passed a null exception"); this.exception = e; this.httpException = (e is HttpException) ? (HttpException)e : new HttpException(e); this.server = server; this.request = request; }
private bool isRoutine(HttpException e) { return e.StatusCode == 404 || e.StatusCode == 405; }