Ticket #104 (new task)
REST itf: uniform formatting of all exceptions
| Reported by: | bruno | Owned by: | bruno |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | REST/HTTP interface | Version: | |
| Keywords: | Cc: | lily-developers@… |
Description
In the REST interface, most exceptions are formatted by the class GenericExceptionMapper?.
However, errors produced by the framework itself or by messagebodyreaders are formatted differently. Should have a look into whether this can be improved.
While not a solution as-is, one thing to consider is formatting all exceptions through Kauri's representationbuilder.
Change History
comment:2 Changed 3 years ago by bruno
The representationbuilder was meanwhile re-added in r4232. Mostly for the reason that since it catches any Throwable, it will maybe report more errors than Restlet does (see also r4233).
However, the json-error formatting performed by the representationbuilder is different from what Lily does, if we are going to keep the repr. builder around we should align them.
(In [4222]) REST itf: remove representationbuilder, it is not used (re #104).