vdiravka commented on a change in pull request #1455: DRILL-6724: Convert
IndexOutOfBounds exception to UserException with …
URL: https://github.com/apache/drill/pull/1455#discussion_r214548619
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/store/log/LogRecordReader.java
##########
@@ -761,4 +761,13 @@ public void close() {
reader = null;
}
}
+
+ @Override
+ public UserException createDataReadException(Throwable cause, String
message) {
+ return UserException.dataReadError(cause)
+ .message(message)
+ .addContext("File", fileWork.getPath())
+ .addContext("Line", rowIndex)
+ .build(logger);
+ }
}
Review comment:
nl
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services