Keep the default constructor for MissingRepositoryException

This commit is contained in:
Shane Kilkelly
2018-12-13 11:40:08 +00:00
parent 27e1152095
commit 2f18feb136
2 changed files with 3 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ public class MissingRepositoryException extends SnapshotAPIException {
private List<String> descriptionLines;
public MissingRepositoryException() { this.descriptionLines = GENERIC_REASON; }
public MissingRepositoryException(List<String> descriptionLines) {
this.descriptionLines = descriptionLines;
}

View File

@@ -97,7 +97,7 @@ public abstract class Request<T extends Result> {
// disregard any errors that arose while handling the JSON
}
throw new MissingRepositoryException(MissingRepositoryException.GENERIC_REASON);
throw new MissingRepositoryException();
} else if (sc >= 400 && sc < 500) {
throw new MissingRepositoryException(MissingRepositoryException.GENERIC_REASON);
}