Polish caught exception names
Prefer `ex` over `e`.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user