KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * ZipUpdateConflictException.java
3  *
4  * Created on 30. Oktober 2004, 13:26
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 import java.io.IOException JavaDoc;
26
27 /**
28  * This exception is thrown by the {@link File#update()} and
29  * {@link File#umount()} methods to indicate a non-fatal error condition.
30  *
31  * <p>Both methods collect any exceptions occuring throughout their course
32  * to build an ordered exception chain so that if the head of the chain
33  * (this is the object which you can actually catch) is an instance of
34  * <tt>ArchiveWarningException</tt>, only this class of objects is in the chain.
35  * This allows you to do a simple case distinction with a try-catch statement
36  * to opt for ignoring warning-only error conditions.
37  *
38  * @author Christian Schlichtherle
39  * @version @version@
40  * @since TrueZIP 6.0 (refactored from the former
41  * <code>ArchiveWarningException</code> in the package {@link de.schlichtherle.io})
42  */

43 public class ArchiveWarningException extends ArchiveException {
44     
45     // TODO: Make this constructor package private!
46
public ArchiveWarningException(
47             ArchiveException priorZipException,
48             String JavaDoc message) {
49         super(priorZipException, message);
50     }
51
52     // TODO: Make this constructor package private!
53
public ArchiveWarningException(
54             ArchiveException priorZipException,
55             String JavaDoc message,
56             IOException JavaDoc cause) {
57         super(priorZipException, message, cause);
58     }
59
60     // TODO: Make this constructor package private!
61
public ArchiveWarningException(
62             ArchiveException priorZipException,
63             IOException JavaDoc cause) {
64         super(priorZipException, cause);
65     }
66     
67     public int getPriority() {
68         return -1;
69     }
70 }
71
Popular Tags