KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > DigestException


1 /*
2  * @(#)DigestException.java 1.17 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 is the generic Message Digest exception.
12  *
13  * @version 1.17, 03/12/19
14  * @author Benjamin Renaud
15  */

16 public class DigestException extends GeneralSecurityException JavaDoc {
17
18     private static final long serialVersionUID = 5821450303093652515L;
19
20     /**
21      * Constructs a DigestException with no detail message. (A
22      * detail message is a String that describes this particular
23      * exception.)
24      */

25     public DigestException() {
26     super();
27     }
28
29     /**
30      * Constructs a DigestException with the specified detail
31      * message. (A detail message is a String that describes this
32      * particular exception.)
33      *
34      * @param msg the detail message.
35      */

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

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

66     public DigestException(Throwable JavaDoc cause) {
67         super(cause);
68     }
69 }
70
Popular Tags