parent
0545cc6932
commit
3cc7374a30
@ -0,0 +1,11 @@ |
||||
package me.bearns.fias.exceptions; |
||||
|
||||
public class RemoteAPIException extends CommonException{ |
||||
public RemoteAPIException(Exception e) { |
||||
super(e); |
||||
} |
||||
|
||||
public RemoteAPIException(String s) { |
||||
super(s); |
||||
} |
||||
} |
@ -1,14 +1,17 @@ |
||||
package me.bearns.fias.service; |
||||
|
||||
import me.bearns.fias.domain.FiasVersion; |
||||
import me.bearns.fias.exceptions.RemoteAPIException; |
||||
|
||||
import java.util.List; |
||||
|
||||
public interface OnlineVersion { |
||||
|
||||
long getLastVersionId(); |
||||
long getLastVersionId() throws RemoteAPIException; |
||||
|
||||
List<FiasVersion> getVersionsAfter(long version); |
||||
@lombok.NonNull |
||||
List<FiasVersion> getVersionsAfter(long version) throws RemoteAPIException; |
||||
|
||||
List<FiasVersion> getLastVersion(); |
||||
@lombok.NonNull |
||||
List<FiasVersion> getLastVersion() throws RemoteAPIException; |
||||
} |
||||
|
Loading…
Reference in new issue