Hi,

I merged some new 1.5 exception constructors from the generics branch to
HEAD.

Regards,
Jeroen

2005-08-06  Jeroen Frijters  <[EMAIL PROTECTED]>

        * java/lang/IllegalArgumentException.java,
        java/lang/IllegalStateException.java,
        java/lang/SecurityException.java,
        java/lang/UnsupportedOperationException.java: Merged from
generics
        branch.
Index: java/lang/IllegalArgumentException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/IllegalArgumentException.java,v
retrieving revision 1.10
diff -u -r1.10 IllegalArgumentException.java
--- java/lang/IllegalArgumentException.java     2 Jul 2005 20:32:38 -0000       
1.10
+++ java/lang/IllegalArgumentException.java     7 Aug 2005 12:15:12 -0000
@@ -47,7 +47,8 @@
  *
  * @author Brian Jones
  * @author Warren Levy ([EMAIL PROTECTED])
- * @status updated to 1.4
+ * @author Andrew John Hughes ([EMAIL PROTECTED])
+ * @status updated to 1.5
  */
 public class IllegalArgumentException extends RuntimeException
 {
@@ -72,4 +73,57 @@
   {
     super(s);
   }
+
+  /**
+   * <p>
+   * Constructs a <code>IllegalArgumentException</code> using
+   * the specified error message, which should give further details
+   * as to the reason for this exception.  The specified cause
+   * <code>Throwable</code> may be used to provide additional history,
+   * with regards to the root of the problem.  It is perfectly valid
+   * for this to be null, if the cause of the problem is unknown.
+   * </p>
+   * <p>
+   * <strong>Note</strong>: the detail message from the cause is not
+   * automatically incorporated into the resulting detail message of
+   * this exception.
+   * </p>
+   * 
+   * @param message the detail message, which should give the reason for
+   *                this exception being thrown.
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public IllegalArgumentException(String message, Throwable cause)
+  {
+    super(message, cause);
+  }
+
+  /**
+   * <p>
+   * Constructs a <code>IllegalArgumentException</code> using
+   * the specified cause <code>Throwable</code>, which may be used
+   * to provide additional history, with regards to the root of the
+   * problem.  It is perfectly valid for this to be null, if the
+   * cause of the problem is unknown.
+   * </p>
+   * <p>
+   * The detail message is automatically constructed from the detail
+   * message of the supplied causal exception.  If the cause is null,
+   * then the detail message will also be null.  Otherwise, the detail
+   * message of this exception will be that of the causal exception.
+   * This makes this constructor very useful for simply wrapping another
+   * exception.
+   * </p>
+   * 
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public IllegalArgumentException(Throwable cause)
+  {
+    super(cause);
+  }
+
 }
Index: java/lang/IllegalStateException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/IllegalStateException.java,v
retrieving revision 1.10
diff -u -r1.10 IllegalStateException.java
--- java/lang/IllegalStateException.java        2 Jul 2005 20:32:38 -0000       
1.10
+++ java/lang/IllegalStateException.java        7 Aug 2005 12:15:12 -0000
@@ -51,8 +51,9 @@
  *
  * @author Brian Jones
  * @author Warren Levy ([EMAIL PROTECTED])
+ * @author Andrew John Hughes ([EMAIL PROTECTED])
  * @since 1.1
- * @status updated to 1.4
+ * @status updated to 1.5
  */
 public class IllegalStateException extends RuntimeException
 {
@@ -77,4 +78,58 @@
   {
     super(s);
   }
+
+  /**
+   * <p>
+   * Constructs a <code>IllegalStateException</code> using
+   * the specified error message, which should give further details
+   * as to the reason for this exception.  The specified cause
+   * <code>Throwable</code> may be used to provide additional history,
+   * with regards to the root of the problem.  It is perfectly valid
+   * for this to be null, if the cause of the problem is unknown.
+   * </p>
+   * <p>
+   * <strong>Note</strong>: the detail message from the cause is not
+   * automatically incorporated into the resulting detail message of
+   * this exception.
+   * </p>
+   * 
+   * @param message the detail message, which should give the reason for
+   *                this exception being thrown.
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public IllegalStateException(String message, Throwable cause)
+  {
+    super(message, cause);
+  }
+
+  /**
+   * <p>
+   * Constructs a <code>IllegalStateException</code> using
+   * the specified cause <code>Throwable</code>, which may be used
+   * to provide additional history, with regards to the root of the
+   * problem.  It is perfectly valid for this to be null, if the
+   * cause of the problem is unknown.
+   * </p>
+   * <p>
+   * The detail message is automatically constructed from the detail
+   * message of the supplied causal exception.  If the cause is null,
+   * then the detail message will also be null.  Otherwise, the detail
+   * message of this exception will be that of the causal exception.
+   * This makes this constructor very useful for simply wrapping another
+   * exception.
+   * </p>
+   * 
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public IllegalStateException(Throwable cause)
+  {
+    super(cause);
+  }
+
 }
+
Index: java/lang/SecurityException.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/SecurityException.java,v
retrieving revision 1.10
diff -u -r1.10 SecurityException.java
--- java/lang/SecurityException.java    2 Jul 2005 20:32:38 -0000       1.10
+++ java/lang/SecurityException.java    7 Aug 2005 12:15:12 -0000
@@ -45,8 +45,9 @@
  *
  * @author Brian Jones
  * @author Warren Levy ([EMAIL PROTECTED])
+ * @author Andrew John Hughes ([EMAIL PROTECTED])
  * @see SecurityManager
- * @status updated to 1.4
+ * @status updated to 1.5
  */
 public class SecurityException extends RuntimeException
 {
@@ -71,4 +72,57 @@
   {
     super(s);
   }
+
+  /**
+   * <p>
+   * Constructs a <code>SecurityException</code> using
+   * the specified error message, which should give further details
+   * as to the reason for this exception.  The specified cause
+   * <code>Throwable</code> may be used to provide additional history,
+   * with regards to the root of the problem.  It is perfectly valid
+   * for this to be null, if the cause of the problem is unknown.
+   * </p>
+   * <p>
+   * <strong>Note</strong>: the detail message from the cause is not
+   * automatically incorporated into the resulting detail message of
+   * this exception.
+   * </p>
+   * 
+   * @param message the detail message, which should give the reason for
+   *                this exception being thrown.
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public SecurityException(String message, Throwable cause)
+  {
+    super(message, cause);
+  }
+
+  /**
+   * <p>
+   * Constructs a <code>SecurityException</code> using
+   * the specified cause <code>Throwable</code>, which may be used
+   * to provide additional history, with regards to the root of the
+   * problem.  It is perfectly valid for this to be null, if the
+   * cause of the problem is unknown.
+   * </p>
+   * <p>
+   * The detail message is automatically constructed from the detail
+   * message of the supplied causal exception.  If the cause is null,
+   * then the detail message will also be null.  Otherwise, the detail
+   * message of this exception will be that of the causal exception.
+   * This makes this constructor very useful for simply wrapping another
+   * exception.
+   * </p>
+   * 
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public SecurityException(Throwable cause)
+  {
+    super(cause);
+  }
+
 }
Index: java/lang/UnsupportedOperationException.java
===================================================================
RCS file: 
/cvsroot/classpath/classpath/java/lang/UnsupportedOperationException.java,v
retrieving revision 1.12
diff -u -r1.12 UnsupportedOperationException.java
--- java/lang/UnsupportedOperationException.java        2 Jul 2005 20:32:39 
-0000       1.12
+++ java/lang/UnsupportedOperationException.java        7 Aug 2005 12:15:13 
-0000
@@ -44,8 +44,9 @@
  * requested of it that it does not support.
  *
  * @author Warren Levy ([EMAIL PROTECTED])
+ * @author Andrew John Hughes ([EMAIL PROTECTED])
  * @since 1.2
- * @status updated to 1.4
+ * @status updated to 1.5
  */
 public class UnsupportedOperationException extends RuntimeException
 {
@@ -70,4 +71,57 @@
   {
     super(s);
   }
+
+  /**
+   * <p>
+   * Constructs a <code>UnsupportedOperationException</code> using
+   * the specified error message, which should give further details
+   * as to the reason for this exception.  The specified cause
+   * <code>Throwable</code> may be used to provide additional history,
+   * with regards to the root of the problem.  It is perfectly valid
+   * for this to be null, if the cause of the problem is unknown.
+   * </p>
+   * <p>
+   * <strong>Note</strong>: the detail message from the cause is not
+   * automatically incorporated into the resulting detail message of
+   * this exception.
+   * </p>
+   * 
+   * @param message the detail message, which should give the reason for
+   *                this exception being thrown.
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public UnsupportedOperationException(String message, Throwable cause)
+  {
+    super(message, cause);
+  }
+
+  /**
+   * <p>
+   * Constructs a <code>UnsupportedOperationException</code> using
+   * the specified cause <code>Throwable</code>, which may be used
+   * to provide additional history, with regards to the root of the
+   * problem.  It is perfectly valid for this to be null, if the
+   * cause of the problem is unknown.
+   * </p>
+   * <p>
+   * The detail message is automatically constructed from the detail
+   * message of the supplied causal exception.  If the cause is null,
+   * then the detail message will also be null.  Otherwise, the detail
+   * message of this exception will be that of the causal exception.
+   * This makes this constructor very useful for simply wrapping another
+   * exception.
+   * </p>
+   * 
+   * @param cause the cause of this exception, or null if the cause
+   *              is unknown.
+   * @since 1.5
+   */
+  public UnsupportedOperationException(Throwable cause)
+  {
+    super(cause);
+  }
+
 }
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to