You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/31 16:39:00 UTC

[jira] [Commented] (DRILL-6724) Convert IndexOutOfBounds exception to UserException with context data where possible

    [ https://issues.apache.org/jira/browse/DRILL-6724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16598984#comment-16598984 ] 

ASF GitHub Bot commented on DRILL-6724:
---------------------------------------

KazydubB opened a new pull request #1455: DRILL-6724: Convert IndexOutOfBounds exception to UserException with …
URL: https://github.com/apache/drill/pull/1455
 
 
   …context data where possible

----------------------------------------------------------------
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:
users@infra.apache.org


> Convert IndexOutOfBounds exception to UserException with context data where possible
> ------------------------------------------------------------------------------------
>
>                 Key: DRILL-6724
>                 URL: https://issues.apache.org/jira/browse/DRILL-6724
>             Project: Apache Drill
>          Issue Type: Improvement
>            Reporter: Bohdan Kazydub
>            Assignee: Bohdan Kazydub
>            Priority: Minor
>
> Sometimes when IndexOutOfBoundsException is exposed to users it is not clear what causes the problem. Instead this exception may be converted to a more useful UserException containing context data like filename, line, position etc (depending on what is available from a reader for a given type).
> A possible approach is to add a method to a RecordReader interface which produces UserException of type ErrorType.DATA_READ with context data, so that when such an UserException is needed it can be easily obtained by invoking the method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)