KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > schlichtherle > crypto > io > raes > RaesException


1 /*
2  * RaesException.java
3  *
4  * Created on 13. Oktober 2005, 00:51
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.crypto.io.raes;
23
24 import java.io.IOException JavaDoc;
25
26 /**
27  * Thrown if a file is read which is not RAES compatible.
28  * This is a subclass of {@link IOException} to indicate that this
29  * is considered to be an issue when accessing the contents of a file.
30  *
31  * @author Christian Schlichtherle
32  * @version @version@
33  * @since TrueZIP 6.0
34  */

35 public class RaesException extends IOException JavaDoc {
36
37     /**
38      * Constructs an instance of <tt>RaesException</tt> with the specified
39      * detail message.
40      *
41      * @param msg The detail message.
42      */

43     public RaesException(String JavaDoc msg) {
44         super(msg);
45     }
46
47     /**
48      * Constructs an instance of <tt>RaesException</tt> with the specified
49      * detail message and cause.
50      *
51      * @param msg The detail message.
52      * @param cause The original cause for this exception to be thrown.
53      */

54     public RaesException(String JavaDoc msg, Throwable JavaDoc cause) {
55         super(msg);
56         initCause(cause);
57     }
58 }
59
Popular Tags