Files
gerrit/plugins
Edwin Kempin 7c97209f6d Make RestApiException(String, Exception) constructor protected
This constructor should only be used by subclasses and for wrapping
other exceptions, but not for signaling internal server errors.

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

To prevent that a RestApiException is accidentally thrown to signal an
internal server error we:

* make the RestApiException(String, Exception) constructor protected so
  that it can only be used by subclasses
* offer a static method for exception wrapping

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I3495cb63f66a669ac5849d5f28c3ce8cc4e5ae95
2019-12-23 15:00:42 +01:00
..
2019-11-22 18:41:57 +00:00
2019-12-04 07:40:00 +00:00
2019-12-06 13:39:30 +00:00
2019-12-02 10:23:39 +00:00
2019-12-10 07:43:58 +00:00