3
* ====================================================================
4
* Licensed to the Apache Software Foundation (ASF) under one
5
* or more contributor license agreements. See the NOTICE file
6
* distributed with this work for additional information
7
* regarding copyright ownership. The ASF licenses this file
8
* to you under the Apache License, Version 2.0 (the
9
* "License"); you may not use this file except in compliance
10
* with the License. You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing,
15
* software distributed under the License is distributed on an
16
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
* KIND, either express or implied. See the License for the
18
* specific language governing permissions and limitations
20
* ====================================================================
24
package org.apache.subversion.javahl.callback;
26
import org.apache.subversion.javahl.ClientException;
27
import org.apache.subversion.javahl.types.Revision;
28
import org.apache.subversion.javahl.callback.ReposNotifyCallback;
29
import org.apache.subversion.javahl.callback.ReposVerifyCallback;
31
import java.util.EventListener;
34
* Error notifications from
35
* {@link ISVNRepos#verify(File,Revision,Revision,boolean,boolean,ReposNotifyCallback,ReposVerifyCallback)}.
39
public interface ReposVerifyCallback extends EventListener
42
* This callback method is invoked every time {@link ISVNRepos#verify}
43
* encounters an error.
45
* The implementation can either consume <code>verifyError</code>
46
* and return normally to continue verifying the repository after
47
* an error, or throw <code>verifyError</code> (or some other
48
* exception) to indicate that verification should stop. In the
49
* second case, the thrown exception will propagate to the caller
50
* of {@link ISVNRepos#verify}.
52
* @param revision The revision that caused the error.
53
* If <code>revision</code> is {@link Revision#SVN_INVALID_REVNUM},
54
* the error occurred during metadata verification.
55
* @param verifyError The verification error.
56
* @throws ClientException
58
void onVerifyError(long revision, ClientException verifyError)
59
throws ClientException;