I'm checking this in.

This adds a bunch of constructors to java.security which are new with
1.5.

Tom

2006-03-03  Tom Tromey  <[EMAIL PROTECTED]>

        * java/security/SignatureException.java (SignatureException): New
        constructors.
        * java/security/ProviderException.java (ProviderException): New
        constructors.
        * java/security/NoSuchAlgorithmException.java
        (NoSuchAlgorithmException): New constructors.
        * java/security/KeyStoreException.java (KeyStoreException): New
        constructors.
        * java/security/KeyManagementException.java (KeyManagementException):
        New constructors.
        * java/security/InvalidKeyException.java (InvalidKeyException): New
        constructors.
        * java/security/KeyException.java (KeyException): New constructors.
        * java/security/InvalidAlgorithmParameterException.java
        (InvalidAlgorithmParameterException): New constructors.
        * java/security/DigestException.java (DigestException): New
        constructors.
        * java/security/GeneralSecurityException.java
        (GeneralSecurityException): New constructors.

Index: java/security/DigestException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/security/DigestException.java,v
retrieving revision 1.7
diff -u -r1.7 DigestException.java
--- java/security/DigestException.java  2 Jul 2005 20:32:40 -0000       1.7
+++ java/security/DigestException.java  3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* DigestException.java -- A generic message digest exception
-   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.
 
@@ -67,4 +67,26 @@
   {
     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 DigestException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public DigestException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/GeneralSecurityException.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/java/security/GeneralSecurityException.java,v
retrieving revision 1.7
diff -u -r1.7 GeneralSecurityException.java
--- java/security/GeneralSecurityException.java 2 Jul 2005 20:32:40 -0000       
1.7
+++ java/security/GeneralSecurityException.java 3 Mar 2006 23:40:46 -0000
@@ -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 @@
   {
     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);
+  }
 }
Index: java/security/InvalidAlgorithmParameterException.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/java/security/InvalidAlgorithmParameterException.java,v
retrieving revision 1.7
diff -u -r1.7 InvalidAlgorithmParameterException.java
--- java/security/InvalidAlgorithmParameterException.java       2 Jul 2005 
20:32:40 -0000       1.7
+++ java/security/InvalidAlgorithmParameterException.java       3 Mar 2006 
23:40:46 -0000
@@ -1,6 +1,6 @@
 /* InvalidAlgorithmParameterException.java -- an invalid parameter to a
    security algorithm
-   Copyright (C) 2000, 2002, 2005  Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002, 2005, 2006  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -70,4 +70,26 @@
   {
     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 InvalidAlgorithmParameterException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public InvalidAlgorithmParameterException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/InvalidKeyException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/security/InvalidKeyException.java,v
retrieving revision 1.7
diff -u -r1.7 InvalidKeyException.java
--- java/security/InvalidKeyException.java      2 Jul 2005 20:32:40 -0000       
1.7
+++ java/security/InvalidKeyException.java      3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* InvalidKeyException -- thrown for an invalid key
-   Copyright (C) 2000, 2002 Free Software Foundation
+   Copyright (C) 2000, 2002, 2006 Free Software Foundation
 
 This file is part of GNU Classpath.
 
@@ -66,4 +66,26 @@
   {
     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 InvalidKeyException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public InvalidKeyException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/KeyException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/security/KeyException.java,v
retrieving revision 1.7
diff -u -r1.7 KeyException.java
--- java/security/KeyException.java     2 Jul 2005 20:32:40 -0000       1.7
+++ java/security/KeyException.java     3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* KeyException.java -- Thrown when there is a problem with a key
-   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.
 
@@ -69,4 +69,26 @@
   {
     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 KeyException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public KeyException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/KeyManagementException.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/java/security/KeyManagementException.java,v
retrieving revision 1.7
diff -u -r1.7 KeyManagementException.java
--- java/security/KeyManagementException.java   2 Jul 2005 20:32:40 -0000       
1.7
+++ java/security/KeyManagementException.java   3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* KeyManagementException.java -- an exception in key management
-   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.
 
@@ -68,4 +68,26 @@
   {
     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 KeyManagementException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public KeyManagementException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/KeyStoreException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/security/KeyStoreException.java,v
retrieving revision 1.7
diff -u -r1.7 KeyStoreException.java
--- java/security/KeyStoreException.java        2 Jul 2005 20:32:40 -0000       
1.7
+++ java/security/KeyStoreException.java        3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* KeyStoreException.java -- Indicates a problem with the key store
-   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.
 
@@ -67,4 +67,26 @@
   {
     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 KeyStoreException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public KeyStoreException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/NoSuchAlgorithmException.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/java/security/NoSuchAlgorithmException.java,v
retrieving revision 1.7
diff -u -r1.7 NoSuchAlgorithmException.java
--- java/security/NoSuchAlgorithmException.java 2 Jul 2005 20:32:40 -0000       
1.7
+++ java/security/NoSuchAlgorithmException.java 3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* NoSuchAlgorithmException.java -- an algorithm was not available
-   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.
 
@@ -67,4 +67,26 @@
   {
     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 NoSuchAlgorithmException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public NoSuchAlgorithmException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/ProviderException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/security/ProviderException.java,v
retrieving revision 1.7
diff -u -r1.7 ProviderException.java
--- java/security/ProviderException.java        2 Jul 2005 20:32:40 -0000       
1.7
+++ java/security/ProviderException.java        3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* ProviderException.java -- Generic security provider runtime exception
-   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.
 
@@ -67,4 +67,26 @@
   {
     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 ProviderException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public ProviderException(Throwable cause)
+  {
+    super(cause);
+  }
 }
Index: java/security/SignatureException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/security/SignatureException.java,v
retrieving revision 1.7
diff -u -r1.7 SignatureException.java
--- java/security/SignatureException.java       2 Jul 2005 20:32:40 -0000       
1.7
+++ java/security/SignatureException.java       3 Mar 2006 23:40:46 -0000
@@ -1,5 +1,5 @@
 /* SignatureException.java -- Generic error in signature
-   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.
 
@@ -67,4 +67,26 @@
   {
     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 SignatureException(String s, Throwable cause)
+  {
+    super(s, cause);
+  }
+
+  /**
+   * Create a new instance with a cause.
+   * @param cause the cause
+   * @since 1.5
+   */
+  public SignatureException(Throwable cause)
+  {
+    super(cause);
+  }
 }

Reply via email to