예제 #1
0
파일: ErrorPage.cs 프로젝트: kevtham/twin
 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;
 }
예제 #2
0
 private bool isRoutine(HttpException e) {
     return e.StatusCode == 404 || e.StatusCode == 405;
 }