You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2005/05/12 10:31:04 UTC

[jira] Created: (DIRMINA-36) ProtocolEncoder/Decoder throws clause issue

ProtocolEncoder/Decoder throws clause issue
-------------------------------------------

         Key: DIRMINA-36
         URL: http://issues.apache.org/jira/browse/DIRMINA-36
     Project: Directory MINA
        Type: Improvement
    Versions: 0.7    
    Reporter: Trustin Lee
 Assigned to: Trustin Lee 
     Fix For: 0.9


ProtocolEncoder.encode() and ProtocolDecoder.decode() throws ProtocolViolationException, but it is inconvenient to type 'try and catch block' for other checked exceptions and prevents from users to implement encoders and decoders fast.  We could change their signature to throw all exceptions and then wrap those exceptions with ProtocolCodecException (renamed from ProtocolViolationException).



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


[jira] Closed: (DIRMINA-36) ProtocolEncoder/Decoder throws clause issue

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRMINA-36?page=all ]
     
Trustin Lee closed DIRMINA-36:
------------------------------

    Resolution: Fixed

Resolved this issue while fixing DIRMINA-90:
* Removed ProtocolViolationException
* Added ProtocolEncoderException and ProtocolDecoderException
* All encoders and decoders can now throw any exceptions; ProtocolCodecFilter wraps thrown exceptions with an appropriate ProtocolCodecException.

> ProtocolEncoder/Decoder throws clause issue
> -------------------------------------------
>
>          Key: DIRMINA-36
>          URL: http://issues.apache.org/jira/browse/DIRMINA-36
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee
>      Fix For: 0.9

>
> ProtocolEncoder.encode() and ProtocolDecoder.decode() throws ProtocolViolationException, but it is inconvenient to type 'try and catch block' for other checked exceptions and prevents from users to implement encoders and decoders fast.  We could change their signature to throw all exceptions and then wrap those exceptions with ProtocolCodecException (renamed from ProtocolViolationException).

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