KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > NoSuchAlgorithmException


1 /*
2  * @(#)NoSuchAlgorithmException.java 1.25 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.security;
9
10 /**
11  * This exception is thrown when a particular cryptographic algorithm is
12  * requested but is not available in the environment.
13  *
14  * @version 1.25, 03/12/19
15  * @author Benjamin Renaud
16  */

17
18 public class NoSuchAlgorithmException extends GeneralSecurityException JavaDoc {
19
20     private static final long serialVersionUID = -7443947487218346562L;
21
22     /**
23      * Constructs a NoSuchAlgorithmException with no detail
24      * message. A detail message is a String that describes this
25      * particular exception.
26      */

27     public NoSuchAlgorithmException() {
28     super();
29     }
30
31     /**
32      * Constructs a NoSuchAlgorithmException with the specified
33      * detail message. A detail message is a String that describes
34      * this particular exception, which may, for example, specify which
35      * algorithm is not available.
36      *
37      * @param msg the detail message.
38      */

39     public NoSuchAlgorithmException(String JavaDoc msg) {
40     super(msg);
41     }
42
43     /**
44      * Creates a <code>NoSuchAlgorithmException</code> with the specified
45      * detail message and cause.
46      *
47      * @param message the detail message (which is saved for later retrieval
48      * by the {@link #getMessage()} method).
49      * @param cause the cause (which is saved for later retrieval by the
50      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
51      * and indicates that the cause is nonexistent or unknown.)
52      * @since 1.5
53      */

54     public NoSuchAlgorithmException(String JavaDoc message, Throwable JavaDoc cause) {
55         super(message, cause);
56     }
57
58     /**
59      * Creates a <code>NoSuchAlgorithmException</code> with the specified cause
60      * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
61      * (which typically contains the class and detail message of
62      * <tt>cause</tt>).
63      *
64      * @param cause the cause (which is saved for later retrieval by the
65      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
66      * and indicates that the cause is nonexistent or unknown.)
67      * @since 1.5
68      */

69     public NoSuchAlgorithmException(Throwable JavaDoc cause) {
70         super(cause);
71     }
72 }
73
Popular Tags