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

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

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