KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > SignatureException


1 /*
2  * @(#)SignatureException.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  * This is the generic Signature exception.
12  *
13  * @version 1.16 12/19/03
14  * @author Benjamin Renaud
15  */

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

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

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

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

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