Skip to content

Commit

Permalink
rename exception vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Constabaris committed Feb 12, 2019
1 parent a4615db commit 0429513
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ext/java/nokogiri/internals/NokogiriHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,14 @@ public void endCDATA() {
charactersBuilder.setLength(0);
}

void handleError(SAXParseException spx) {
void handleError(SAXParseException ex) {
try {
final String msg = spx.getMessage();
final String msg = ex.getMessage();
call("error", runtime.newString(msg == null ? "" : msg));
addError(new RaiseException(XmlSyntaxError.createError(runtime, spx), true));
} catch( RaiseException rx ) {
addError(rx);
throw rx;
addError(new RaiseException(XmlSyntaxError.createError(runtime, ex), true));
} catch( RaiseException e) {
addError(e);
throw e;
}
}

Expand Down

0 comments on commit 0429513

Please sign in to comment.