Issue Details (XML | Word | Printable)

Key: DIRMINA-36
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Trustin Lee
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

ProtocolEncoder/Decoder throws clause issue

Created: 12/May/05 05:21 PM   Updated: 17/Oct/05 07:08 PM
Return to search
Component/s: None
Affects Version/s: 0.7.0
Fix Version/s: 0.9.0

Time Tracking:
Not Specified

Resolution Date: 17/Oct/05 07:08 PM


 Description  « Hide
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).



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Trustin Lee added a comment - 17/Oct/05 07:08 PM
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.

Trustin Lee made changes - 17/Oct/05 07:08 PM
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]