mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Consistent use of IllegalStateException instead of InternalError for UnsupportedEncodingException cause
This commit is contained in:
@@ -81,7 +81,7 @@ public class MockHttpOutputMessage implements HttpOutputMessage {
|
||||
}
|
||||
catch (UnsupportedEncodingException ex) {
|
||||
// should not occur
|
||||
throw new InternalError(ex.getMessage());
|
||||
throw new IllegalStateException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user