Polish caught exception names

Prefer `ex` over `e`.
This commit is contained in:
Phillip Webb
2018-05-03 12:50:16 -07:00
parent 41efea51a7
commit 2d70a7ae5e
10 changed files with 13 additions and 13 deletions

View File

@@ -50,10 +50,10 @@ public class PrometheusScrapeEndpoint {
TextFormat.write004(writer, this.collectorRegistry.metricFamilySamples());
return writer.toString();
}
catch (IOException e) {
catch (IOException ex) {
// This actually never happens since StringWriter::write() doesn't throw any
// IOException
throw new RuntimeException("Writing metrics failed", e);
throw new RuntimeException("Writing metrics failed", ex);
}
}

View File

@@ -250,8 +250,8 @@ public class WebMvcMetricsFilterTests {
result.set(this.mvc.perform(get("/api/c1/completableFuture/{id}", 1))
.andExpect(request().asyncStarted()).andReturn());
}
catch (Exception e) {
fail("Failed to execute async request", e);
catch (Exception ex) {
fail("Failed to execute async request", ex);
}
});
backgroundRequest.start();