private static HttpResponseMessage HandleExceptionInternal(ExceptionContext context, ApiVersionNotDeterminedException exception) {
            if (exception == null) {
                return null;
            }

            return context.Request.CreateResponse(HttpStatusCode.BadRequest, exception.Message);
        }
Example #2
0
        private static HttpResponseMessage HandleExceptionInternal(ExceptionContext context, ApiVersionNotDeterminedException exception)
        {
            if (exception == null)
            {
                return(null);
            }

            return(context.Request.CreateResponse(HttpStatusCode.BadRequest, exception.Message));
        }