Update exception variable names

Consistently use `ex` for caught exception and `cause` for Exception
constructor arguments.

Issue gh-8945
This commit is contained in:
Phillip Webb
2020-07-28 23:53:30 -07:00
committed by Rob Winch
parent e9130489a6
commit 8d80166aaf
194 changed files with 635 additions and 633 deletions

View File

@@ -129,10 +129,8 @@ public abstract class AbstractAuthorizeTag {
accessExpression = handler.getExpressionParser().parseExpression(getAccess());
}
catch (ParseException e) {
IOException ioException = new IOException();
ioException.initCause(e);
throw ioException;
catch (ParseException ex) {
throw new IOException(ex);
}
return ExpressionUtils.evaluateAsBoolean(accessExpression, createExpressionEvaluationContext(handler));

View File

@@ -102,8 +102,8 @@ public class AuthenticationTag extends TagSupport {
BeanWrapperImpl wrapper = new BeanWrapperImpl(auth);
result = wrapper.getPropertyValue(this.property);
}
catch (BeansException e) {
throw new JspException(e);
catch (BeansException ex) {
throw new JspException(ex);
}
}

View File

@@ -79,8 +79,8 @@ public class JspAuthorizeTag extends AbstractAuthorizeTag implements Tag {
return TagLibConfig.evalOrSkip(this.authorized);
}
catch (IOException e) {
throw new JspException(e);
catch (IOException ex) {
throw new JspException(ex);
}
}
@@ -101,8 +101,8 @@ public class JspAuthorizeTag extends AbstractAuthorizeTag implements Tag {
this.pageContext.getOut().write(TagLibConfig.getSecuredUiSuffix());
}
}
catch (IOException e) {
throw new JspException(e);
catch (IOException ex) {
throw new JspException(ex);
}
return EVAL_PAGE;

View File

@@ -39,8 +39,8 @@ abstract class AbstractCsrfTag extends TagSupport {
try {
this.pageContext.getOut().write(this.handleToken(token));
}
catch (IOException e) {
throw new JspException(e);
catch (IOException ex) {
throw new JspException(ex);
}
}