Polish caught exception names

Prefer `ex` over `e`.
This commit is contained in:
Phillip Webb
2018-05-02 13:30:10 -07:00
parent 3ee777e142
commit 64930d4e5b
16 changed files with 25 additions and 25 deletions

View File

@@ -359,8 +359,8 @@ class ProjectGenerationRequest {
return builder.build();
}
catch (URISyntaxException e) {
throw new ReportableException("Invalid service URL (" + e.getMessage() + ")");
catch (URISyntaxException ex) {
throw new ReportableException("Invalid service URL (" + ex.getMessage() + ")");
}
}

View File

@@ -222,8 +222,8 @@ public class DependencyManagementBomTransformation
return new UrlModelSource(
Grape.getInstance().resolve(null, dependency)[0].toURL());
}
catch (MalformedURLException e) {
throw new UnresolvableModelException(e.getMessage(), groupId, artifactId,
catch (MalformedURLException ex) {
throw new UnresolvableModelException(ex.getMessage(), groupId, artifactId,
version);
}
}

View File

@@ -116,8 +116,8 @@ public class MavenSettingsReader {
try {
this._cipher = new DefaultPlexusCipher();
}
catch (PlexusCipherException e) {
throw new IllegalStateException(e);
catch (PlexusCipherException ex) {
throw new IllegalStateException(ex);
}
}