Polish caught exception names
Prefer `ex` over `e`.
This commit is contained in:
@@ -529,8 +529,8 @@ public class UndertowEmbeddedServletContainerFactory
|
||||
root = (root != null ? root : createTempDir("undertow-docbase"));
|
||||
return root.getCanonicalFile();
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new IllegalStateException("Cannot get canonical document root", e);
|
||||
catch (IOException ex) {
|
||||
throw new IllegalStateException("Cannot get canonical document root", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,8 +127,8 @@ public class DataSourceXAResourceRecoveryHelper
|
||||
try {
|
||||
this.xaConnection.close();
|
||||
}
|
||||
catch (SQLException e) {
|
||||
logger.warn("Failed to close connection", e);
|
||||
catch (SQLException ex) {
|
||||
logger.warn("Failed to close connection", ex);
|
||||
}
|
||||
finally {
|
||||
this.xaConnection = null;
|
||||
|
||||
@@ -177,8 +177,8 @@ public class SpringApplicationAdminMXBeanRegistrarTests {
|
||||
try {
|
||||
return new ObjectName(jmxName);
|
||||
}
|
||||
catch (MalformedObjectNameException e) {
|
||||
throw new IllegalStateException("Invalid jmx name " + jmxName, e);
|
||||
catch (MalformedObjectNameException ex) {
|
||||
throw new IllegalStateException("Invalid jmx name " + jmxName, ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user