KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > schlichtherle > io > ArchiveBusyException


1 /*
2  * ArchiveBusyException.java
3  *
4  * Created on 10. September 2005, 11:44
5  */

6 /*
7  * Copyright 2005 Schlichtherle IT Services
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22 package de.schlichtherle.io;
23
24 /**
25  * This exception is thrown if an archive controller could <em>not<em> update
26  * an archive because some input or output streams for its entries were
27  * still open.
28  * The canonical path name of the archive file is provided as the detail message.
29  *
30  * @author Christian Schlichtherle
31  * @version @version@
32  * @since TrueZIP 6.0
33  */

34 public class ArchiveBusyException extends ArchiveException {
35
36     ArchiveBusyException(ArchiveException priorException, String JavaDoc canPath) {
37         super(priorException, canPath);
38     }
39
40     // TODO: Remove this.
41
/**
42      * @deprecated You should not use this constructor.
43      * It will vanish in the next major version.
44      */

45     public ArchiveBusyException(
46             ArchiveException priorException, java.io.File JavaDoc target) {
47         super(priorException, target.getPath());
48
49         assert target.isAbsolute();
50     }
51
52     public int getPriority() {
53         return -2;
54     }
55 }
56
Popular Tags