KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > ProviderException


1 /*
2  * @(#)ProviderException.java 1.16 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  * A runtime exception for Provider exceptions (such as
12  * misconfiguration errors or unrecoverable internal errors),
13  * which may be subclassed by Providers to
14  * throw specialized, provider-specific runtime errors.
15  *
16  * @version 1.16, 12/19/03
17  * @author Benjamin Renaud
18  */

19 public class ProviderException extends RuntimeException JavaDoc {
20
21     private static final long serialVersionUID = 5256023526693665674L;
22
23     /**
24      * Constructs a ProviderException with no detail message. A
25      * detail message is a String that describes this particular
26      * exception.
27      */

28     public ProviderException() {
29     super();
30     }
31
32     /**
33      * Constructs a ProviderException with the specified detail
34      * message. A detail message is a String that describes this
35      * particular exception.
36      *
37      * @param s the detail message.
38      */

39     public ProviderException(String JavaDoc s) {
40     super(s);
41     }
42
43     /**
44      * Creates a <code>ProviderException</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 ProviderException(String JavaDoc message, Throwable JavaDoc cause) {
55         super(message, cause);
56     }
57
58     /**
59      * Creates a <code>ProviderException</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 ProviderException(Throwable JavaDoc cause) {
70         super(cause);
71     }
72 }
73
Popular Tags