diff options
Diffstat (limited to 'java/security/GeneralSecurityException.java')
-rw-r--r-- | java/security/GeneralSecurityException.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/java/security/GeneralSecurityException.java b/java/security/GeneralSecurityException.java index 72453ee8c..87e51ce3b 100644 --- a/java/security/GeneralSecurityException.java +++ b/java/security/GeneralSecurityException.java @@ -1,5 +1,5 @@ /* GeneralSecurityException.java -- Common superclass of security exceptions - Copyright (C) 1998, 2002, 2005 Free Software Foundation, Inc. + Copyright (C) 1998, 2002, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -72,4 +72,26 @@ public class GeneralSecurityException extends Exception { super(msg); } + + /** + * Create a new instance with a descriptive error message and + * a cause. + * @param s the descriptive error message + * @param cause the cause + * @since 1.5 + */ + public GeneralSecurityException(String s, Throwable cause) + { + super(s, cause); + } + + /** + * Create a new instance with a cause. + * @param cause the cause + * @since 1.5 + */ + public GeneralSecurityException(Throwable cause) + { + super(cause); + } } |