You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "David M. Lloyd (JIRA)" <ji...@apache.org> on 2007/12/07 16:47:43 UTC

[jira] Updated: (DIRMINA-493) SingleSessionIoHandlerFactory.getHandler(IoSession) should throw IOException or Exception

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

David M. Lloyd updated DIRMINA-493:
-----------------------------------

    Attachment: SingleSessionIoHandler.patch

Patch to add "throws Exception"

> SingleSessionIoHandlerFactory.getHandler(IoSession) should throw IOException or Exception
> -----------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-493
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-493
>             Project: MINA
>          Issue Type: Improvement
>          Components: Core
>            Reporter: David M. Lloyd
>            Priority: Minor
>             Fix For: 2.0.0-M1
>
>         Attachments: SingleSessionIoHandler.patch
>
>
> Since the only place that this method is used is within a method that throws Exception, the method should be allowed to throw Exception or IoException.  This makes life easier if the creation of the session could fail, for example creating an ObjectOutputStream which could throw IOException.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.