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

            return context.Request.CreateErrorResponse(HttpStatusCode.BadRequest, ExceptionResources.CannotDetermineRequestVersion, exception);
        }
Exemplo n.º 2
0
        private static HttpResponseMessage HandleExceptionInternal(ExceptionContext context, ApiVersionFormatException exception)
        {
            if (exception == null)
            {
                return(null);
            }

            return(context.Request.CreateErrorResponse(HttpStatusCode.BadRequest, ExceptionResources.CannotDetermineRequestVersion, exception));
        }