コード例 #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
ファイル: ConnectionHandler.cs プロジェクト: kevtham/twin
 private bool isRoutine(HttpException e) {
     return e.StatusCode == 404 || e.StatusCode == 405;
 }