Periodically fetch release notes.

This commit is contained in:
Cody Henthorne
2022-02-02 10:45:04 -05:00
parent 9114dc83d7
commit 8348badcd6
25 changed files with 789 additions and 34 deletions

View File

@@ -11,4 +11,8 @@ import org.whispersystems.signalservice.api.push.exceptions.MalformedResponseExc
*/
public interface ErrorMapper {
Throwable parseError(int status, String body, Function<String, String> getHeader) throws MalformedResponseException;
default Throwable parseError(int status) throws MalformedResponseException {
return parseError(status, "", s -> "");
}
}