コード例 #1
0
 public HttpResponseError(HttpStatusCode status = HttpStatusCode.InternalServerError, string message = null, string error = null, string trace = null)
 {
     this.StatusCode = status;
     this.Error      = error ?? status.GetDefaultExceptionMessage();
     this.Message    = message ?? status.GetDefaultMessage();
     this.Trace      = trace;
 }