Consistent use of IllegalStateException instead of InternalError for UnsupportedEncodingException cause

(cherry picked from commit d9b39ad)
This commit is contained in:
Juergen Hoeller
2014-05-20 00:37:09 +02:00
parent f524a5abe4
commit 0313222bc7
4 changed files with 41 additions and 37 deletions

View File

@@ -79,7 +79,7 @@ public class MockHttpOutputMessage implements HttpOutputMessage {
}
catch (UnsupportedEncodingException ex) {
// should not occur
throw new InternalError(ex.getMessage());
throw new IllegalStateException(ex);
}
}