beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Halperin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BEAM-281) IOChannelUtils.getFactory should throw an unchecked exception rather than IOException
Date Tue, 08 Nov 2016 00:44:58 GMT

     [ https://issues.apache.org/jira/browse/BEAM-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Halperin updated BEAM-281:
---------------------------------
    Assignee: Pei He  (was: Daniel Halperin)

> IOChannelUtils.getFactory should throw an unchecked exception rather than IOException
> -------------------------------------------------------------------------------------
>
>                 Key: BEAM-281
>                 URL: https://issues.apache.org/jira/browse/BEAM-281
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Scott Wegner
>            Assignee: Pei He
>            Priority: Minor
>
> In [this PR|https://github.com/apache/incubator-beam/pull/300#discussion-diff-63109718],
we've add a new method, {{IOChannelUtils.hasFactory}}, which provides a convenient way to
verify that a factory exists before calling getFactory. As such, the IOException thrown by
getFactory is extra cruft for consumers using the new pattern.
> We should update additional consumers to check hasFactory first, and then migrate getFactory
to throw a RuntimeException



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message