You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Mark Giaconia (JIRA)" <ji...@apache.org> on 2014/03/05 14:51:42 UTC

[jira] [Commented] (OPENNLP-655) Entity Linker Factory should not throw "Exception"

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

Mark Giaconia commented on OPENNLP-655:
---------------------------------------

I chose Exception because I didn't think IOException would cover all cases for what people might do inside the init method, for instance getting a SQL resource will throw SQLException

> Entity Linker Factory should not throw "Exception"
> --------------------------------------------------
>
>                 Key: OPENNLP-655
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-655
>             Project: OpenNLP
>          Issue Type: Task
>          Components: Entity Linker
>            Reporter: Joern Kottmann
>            Assignee: Mark Giaconia
>             Fix For: 1.6.0
>
>
> The entity linker factory should not just throw Exception. Other components just throw IOException during instantiation if something goes wrong. Or Runtime Exceptions, e.g. if class loading fails.
> Would it be sufficient to declare IOException?



--
This message was sent by Atlassian JIRA
(v6.2#6252)