Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Aug 9, 2020
1 parent b70d749 commit 7ac4370
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ public DomNode cloneNode(final boolean deep) {
newnode = (DomNode) clone();
}
catch (final CloneNotSupportedException e) {
throw new IllegalStateException("Clone not supported for node [" + this + "]");
throw new IllegalStateException("Clone not supported for node [" + this + "]", e);
}

newnode.parent_ = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected boolean doClickStateUpdate(final boolean shiftKey, final boolean ctrlK
}
catch (final MalformedURLException e) {
throw new IllegalStateException(
"Not a valid url: " + getHrefAttribute());
"Not a valid url: " + getHrefAttribute(), e);
}
final WebRequest request = new WebRequest(url);
request.setCharset(page.getCharset());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ else if (anchor != null
}
}
catch (final MalformedURLException e) {
throw new IllegalArgumentException("Not a valid url: " + actionUrl);
throw new IllegalArgumentException("Not a valid url: " + actionUrl, e);
}

final WebRequest request = new WebRequest(url, browser.getHtmlAcceptHeader(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public SvgMatrix inverse(final SvgMatrix svgMatrix) {
}
catch (final NoninvertibleTransformException e) {
throw new IllegalArgumentException(
"Failed to execute 'inverse' on 'SVGMatrix': The matrix is not invertible.");
"Failed to execute 'inverse' on 'SVGMatrix': The matrix is not invertible.", e);
}
}

Expand Down

0 comments on commit 7ac4370

Please sign in to comment.