Exemple #1
0
 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;
 }
Exemple #2
0
 private bool isRoutine(HttpException e) {
     return e.StatusCode == 404 || e.StatusCode == 405;
 }