mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Keep the default constructor for MissingRepositoryException
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user