Issue161 add exception conversion#969
Conversation
Add content negotiation in StatusFilter
WARNING: StatusService has been removed from GWT Edition
|
WARNING: StatusService has been removed from GWT Edition. Need to be validated. |
|
Build failed because build of master failed since https://travis-ci.org/restlet/restlet-framework-java/builds/38889517 |
|
Manuel, thanks it looks great overall! Some comments:
|
|
I've added a testException() method to JacksonTestCase in order to play with exception serialization and deserialization. I've also changed the default Jackson serialization setting in JacksonRepresentation to not add "null" and empty collections to the output, producing more compact representations. Other comments:
|
There was a problem hiding this comment.
Why are you instantiating a StatusRepresentation?
|
PR pushed as branch |
|
Just pushed those refactorings/changes:
|
Work
Done:
ConverterServiceStatusFiltervaluetype fromStringtointServerResourceNot done:
ClientResourceafter an error occurs in theServerResourceUse cases explained
Response headers:
Response: N/A
Response headers:
Response:
Response headers:
Response:
{ "code": 500, "description": "The server encountered an unexpected condition which prevented it from fulfilling the request", "reasonPhrase": "Internal Server Error" }Response headers:
Response:
Response headers:
Response:
{ "code":404, "reasonPhrase":"Not Found", "description":"The server has not found anything matching the request URI" }Response headers:
Response:
{ "message": "Parameter age is not of the expected type: number. Value: male", "name": "age", "type": "number", "value": "male" }Exception class: