Raise RestClientException for unknown status codes
HttpStatus cannot be created with an unknown status code. If a server returns a status code that's not in the HttpStatus enum values, an IllegalArgumentException is raised. Rather than allowing it to propagate as such, this change ensures the actual exception raised is a RestClientException. Issue: SPR-9406
This commit is contained in:
2
src/dist/changelog.txt
vendored
2
src/dist/changelog.txt
vendored
@@ -7,7 +7,7 @@ Changes in version 3.2 M2
|
||||
-------------------------
|
||||
|
||||
* spring-test module now depends on junit:junit-dep
|
||||
|
||||
* raise RestClientException instead of IllegalArgumentException for unknown status codes
|
||||
|
||||
Changes in version 3.2 M1 (2012-05-28)
|
||||
--------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user