Update exception variable names
Consistently use `ex` for caught exception and `cause` for Exception constructor arguments. Issue gh-8945
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user