arthurscchan commented on PR #222:
URL: https://github.com/apache/commons-codec/pull/222#issuecomment-1827764168

   @garydgregory Oh, you are right, if we filtered out invalid data, then the 
round trip result will be differed from the original input. Sorry for missing 
that. Maybe throwing EncoderException is much better. Instead of checking the 
length and skip the invalid byte, I could simply add a try catch block in the 
code, when any IndexOutOfBound (or more general, and kind of RuntimeException) 
is thrown, wrap it with EncoderException. This could at least make the method 
not throwing "unexpected" RuntimeException. It maybe a better approach. WDYT?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to