Skip to content

Commit

Permalink
#142 more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 22, 2017
1 parent 5ceafd7 commit 0058316
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/java/com/jcabi/xml/XSLDocument.java
Expand Up @@ -109,20 +109,32 @@ public final class XSLDocument implements XSL {

/**
* Error listener.
* @checkstyle AnonInnerLengthCheck (50 lines)
*/
private static final ErrorListener ERRORS = new ErrorListener() {
@Override
public void warning(final TransformerException warning) {
Logger.warn(this, warning.getMessageAndLocation());
Logger.warn(
this, "#warning(): %s",
warning.getMessageAndLocation()
);
}
@Override
public void error(final TransformerException error)
throws TransformerException {
Logger.error(
this, "#error(): %s",
error.getMessageAndLocation()
);
throw error;
}
@Override
public void fatalError(final TransformerException error)
throws TransformerException {
Logger.error(
this, "#fatalError(): %s",
error.getMessageAndLocation()
);
throw error;
}
};
Expand Down

0 comments on commit 0058316

Please sign in to comment.