public override void Handle(ExceptionHandlerContext context) { var errorInformation = new ErrorInformation() { Message = "An unhandled exception occurred; check the log for more information.", }; context.Result = new ResponseMessageResult(context.Request.CreateResponse(HttpStatusCode.BadRequest, errorInformation)); }
public override void Handle(ExceptionHandlerContext context) { var errorInformation = new ErrorInformation() { Message = "An unhandled exception occurred; check the log for more information.", }; context.Result = new ResponseMessageResult(context.Request.CreateResponse(HttpStatusCode.BadRequest, errorInformation)); }