Consistent use of IllegalStateException instead of InternalError for UnsupportedEncodingException cause

This commit is contained in:
Juergen Hoeller
2014-05-20 00:37:09 +02:00
parent 73c9d09024
commit d9b39ad691
4 changed files with 27 additions and 24 deletions

View File

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