Skip to content

Commit ad22efb

Browse files
committed
EIncompatibleApiVersion added
1 parent cd762f2 commit ad22efb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/main/java/org/scm4j/deployer/api/IDownloader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package org.scm4j.deployer.api;
22

3+
import org.scm4j.deployer.api.exceptions.EIncompatibleApiVersion;
4+
35
import java.io.File;
46
import java.util.Map;
57

68
public interface IDownloader {
79

810
Map<String, ? extends IDeploymentContext> getDepCtx();
911

10-
File getProductFile(String coords);
12+
File getProductFile(String coords) throws EIncompatibleApiVersion;
1113

1214
IProduct getProduct();
1315

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.scm4j.deployer.api.exceptions;
2+
3+
public class EIncompatibleApiVersion extends Exception {
4+
private static final long serialVersionUID = 1L;
5+
6+
public EIncompatibleApiVersion(String message) {
7+
super(message);
8+
}
9+
10+
11+
}

0 commit comments

Comments
 (0)