[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-204) ArchiveFileSystem.openInputStream returns null on missing Asset, should throw IOException

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Sun Jul 11 18:37:46 EDT 2010


    [ https://jira.jboss.org/browse/SHRINKWRAP-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12538706#action_12538706 ] 

Andrew Lee Rubinger commented on SHRINKWRAP-204:
------------------------------------------------

Since when should someone "always expect" a RuntimeException?  This represents some error not usually recoverable by the application, or at least expected to be handled by it.

The API uses IOExceptions, sure, because we're opening streams and that's necessary.  But the underlying cause is *not* an IO problem.  It's a problem with the user requesting something that's not there.  Which is a user error, not an IOException.

> ArchiveFileSystem.openInputStream returns null on missing Asset, should throw IOException
> -----------------------------------------------------------------------------------------
>
>                 Key: SHRINKWRAP-204
>                 URL: https://jira.jboss.org/browse/SHRINKWRAP-204
>             Project: ShrinkWrap
>          Issue Type: Bug
>          Components: ext-vfs3
>    Affects Versions: 1.0.0-alpha-10
>            Reporter: Aslak Knutsen
>            Assignee: Aslak Knutsen
>             Fix For: 1.0.0-alpha-11
>
>
> Opening a InputStream to a non existing Asset should result in IOException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list