Files
gerrit/java
Edwin Kempin b5bee5779e Do not throw generic RestApiException to signal an internal server error
Just throw the PermissionBackendException which will be mapped to
internal server error too. This removes the specific exception message,
but the same information is available from the stacktrace which will be
logged. Since this was an internal server error, the message wasn't
returned to clients anyway.

Throwing RestApiExceptions to signal internal server errors is bad
since all RestApiExceptions are exempt from retries and auto-tracing.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I8b4a481d87bbed2fb102a4f203472b94b00fd521
2019-12-23 14:42:50 +01:00
..