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

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > October 2005 > [jira] Closed: (DIRMINA-36) ProtocolEncoder/Decoder throws clause issue





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2005-10-19, 5:46 pm

[ http://issues.apache.org/jira/brows...INA-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/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com