| commit | df134a834a34b457fd35f3f843c7989f9f570846 | [log] [tgz] |
|---|---|---|
| author | Edwin Kempin <edwin.kempin@sap.com> | Mon Nov 11 19:18:54 2013 +0100 |
| committer | Edwin Kempin <edwin.kempin@sap.com> | Mon Nov 11 19:18:54 2013 +0100 |
| tree | 157c070e7a7d74ab9d1c8ad7a264ce307e819daa | |
| parent | bf42bc55b0acc51d2d06897923aa57b6adad1ff6 [diff] |
Cleanup implementation of REST views - specify return type if possible - remove unnecessary throw declarations - convert some of the thrown exceptions to RestExceptions - do not throw Exception but specific exceptions - sort throw declarations (first RestExceptions, then other exceptions) Having explicit return types and exceptions makes it easier to programatically invoke the REST views, e.g. if a plugin wants to add a REST view that wraps a Gerrit core REST view. Change-Id: I5c59553b6cfad457f7ec037cceb08936247bf8e8 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>