KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > cert > CertPathBuilderException


1 /*
2  * @(#)CertPathBuilderException.java 1.7 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.cert;
9
10 import java.security.GeneralSecurityException JavaDoc;
11
12 /**
13  * An exception indicating one of a variety of problems encountered when
14  * building a certification path with a <code>CertPathBuilder</code>.
15  * <p>
16  * A <code>CertPathBuilderException</code> provides support for wrapping
17  * exceptions. The {@link #getCause getCause} method returns the throwable,
18  * if any, that caused this exception to be thrown.
19  * <p>
20  * <b>Concurrent Access</b>
21  * <p>
22  * Unless otherwise specified, the methods defined in this class are not
23  * thread-safe. Multiple threads that need to access a single
24  * object concurrently should synchronize amongst themselves and
25  * provide the necessary locking. Multiple threads each manipulating
26  * separate objects need not synchronize.
27  *
28  * @see CertPathBuilder
29  *
30  * @version 1.7 12/19/03
31  * @since 1.4
32  * @author Sean Mullan
33  */

34 public class CertPathBuilderException extends GeneralSecurityException JavaDoc {
35
36     private static final long serialVersionUID = 5316471420178794402L;
37
38     /**
39      * Creates a <code>CertPathBuilderException</code> with <code>null</code>
40      * as its detail message.
41      */

42     public CertPathBuilderException() {
43     super();
44     }
45
46     /**
47      * Creates a <code>CertPathBuilderException</code> with the given
48      * detail message. The detail message is a <code>String</code> that
49      * describes this particular exception in more detail.
50      *
51      * @param msg the detail message
52      */

53     public CertPathBuilderException(String JavaDoc msg) {
54     super(msg);
55     }
56
57     /**
58      * Creates a <code>CertPathBuilderException</code> that wraps the specified
59      * throwable. This allows any exception to be converted into a
60      * <code>CertPathBuilderException</code>, while retaining information
61      * about the wrapped exception, which may be useful for debugging. The
62      * detail message is set to (<code>cause==null ? null : cause.toString()
63      * </code>) (which typically contains the class and detail message of
64      * cause).
65      *
66      * @param cause the cause (which is saved for later retrieval by the
67      * {@link #getCause getCause()} method). (A <code>null</code> value is
68      * permitted, and indicates that the cause is nonexistent or unknown.)
69      */

70     public CertPathBuilderException(Throwable JavaDoc cause) {
71         super(cause);
72     }
73
74     /**
75      * Creates a <code>CertPathBuilderException</code> with the specified
76      * detail message and cause.
77      *
78      * @param msg the detail message
79      * @param cause the cause (which is saved for later retrieval by the
80      * {@link #getCause getCause()} method). (A <code>null</code> value is
81      * permitted, and indicates that the cause is nonexistent or unknown.)
82      */

83     public CertPathBuilderException(String JavaDoc msg, Throwable JavaDoc cause) {
84         super(msg, cause);
85     }
86
87 }
88
Popular Tags