Repository navigation
Catch encoding exception - #464
rsafonseca wants to merge 2 commits into
Conversation
|
cloudstack-pull-requests #462 FAILURE |
There was a problem hiding this comment.
can you change to: "Unable to generate UUID due to unexpected encoding error: " + e.getLocalizedMessage()
There was a problem hiding this comment.
and probably retry with Charset.defaultCharset(), no?
There was a problem hiding this comment.
@DaanHoogland
I changed to localized message as requested.
I don't expect this exception to ever be thrown, because it will only do so if the undelying platform really doesn't support UTF-8 at all. Can't think of a platform that wouldn't support that nowadays, wether it's the default or not.
Adding a retry within the catch would require another catch within it, so i think its too much for an exception that would likely never be thrown ;)
There was a problem hiding this comment.
You are right.. getBytes(Charset) doesn't require a try/catch since if you can retrieve the Charset object it will always be supported.
I see you have already fixed it, thanks Daan :)
Change output to localized message
|
cloudstack-pull-requests #463 FAILURE |
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com> This closes apache#464
No description provided.