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