コード例 #1
0
 public override void OnException(HttpActionExecutedContext actionExecutedContext)
 {
     SkyExceptionError error = new SkyExceptionError(actionExecutedContext.Exception);
     actionExecutedContext.Response = actionExecutedContext.Request.CreateResponse(HttpStatusCode.OK, error);
 }
コード例 #2
0
 public override void Handle(ExceptionHandlerContext context)
 {
     SkyExceptionError error = new SkyExceptionError(context.Exception);
     context.Result = new ResponseMessageResult(context.Request.CreateResponse(HttpStatusCode.OK, error));
 }
コード例 #3
0
        public override void OnException(HttpActionExecutedContext actionExecutedContext)
        {
            SkyExceptionError error = new SkyExceptionError(actionExecutedContext.Exception);

            actionExecutedContext.Response = actionExecutedContext.Request.CreateResponse(HttpStatusCode.OK, error);
        }
コード例 #4
0
        public override void Handle(ExceptionHandlerContext context)
        {
            SkyExceptionError error = new SkyExceptionError(context.Exception);

            context.Result = new ResponseMessageResult(context.Request.CreateResponse(HttpStatusCode.OK, error));
        }