KickJava   Java API By Example, From Geeks To Geeks.

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


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

16
17 package de.schlichtherle.crypto.io.raes;
18
19 import java.io.FileNotFoundException JavaDoc;
20
21 /**
22  * Thrown to indicate that no suitable RAES parameters have been provided or
23  * something is wrong with the parameters.
24  * This is a subclass of {@link FileNotFoundException} to indicate that this
25  * is considered to be an issue when opening an RAES file rather than accessing
26  * it contents (which would usually throw an <code>IOException</code>,
27  * but not a <code>FileNotFoundException</code>).
28  *
29  * @author Christian Schlichtherle
30  * @version @version@
31  * @since TrueZIP 6.0
32  */

33 public class RaesParametersException extends FileNotFoundException JavaDoc {
34     
35     /**
36      * Creates a new instance of <code>RaesParametersException</code> with a
37      * detail message indicating that no suitable {@link RaesParameters} have
38      * been found.
39      */

40     public RaesParametersException() {
41         super("No suitable RaesParameters provided!");
42     }
43     
44     /**
45      * Constructs an instance of <code>RaesParametersException</code> with the
46      * specified detail message.
47      *
48      * @param msg The detail message.
49      */

50     public RaesParametersException(String JavaDoc msg) {
51         super(msg);
52     }
53     
54     /**
55      * Constructs an instance of <code>RaesParametersException</code> with the
56      * specified cause.
57      *
58      * @param cause The cause.
59      */

60     public RaesParametersException(Throwable JavaDoc cause) {
61         super(cause != null ? cause.toString() : null);
62         initCause(cause);
63     }
64 }
65
Popular Tags