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