Index: java/lang/IllegalArgumentException.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/lang/IllegalArgumentException.java,v retrieving revision 1.8.2.1 diff -u -3 -p -u -r1.8.2.1 IllegalArgumentException.java --- java/lang/IllegalArgumentException.java 19 Feb 2005 10:50:36 -0000 1.8.2.1 +++ java/lang/IllegalArgumentException.java 19 Mar 2005 11:40:38 -0000 @@ -47,7 +47,8 @@ package java.lang; * * @author Brian Jones * @author Warren Levy (address@hidden) - * @status updated to 1.4 + * @author Andrew John Hughes (address@hidden) + * @status updated to 1.5 */ public class IllegalArgumentException extends RuntimeException { @@ -72,4 +73,57 @@ public class IllegalArgumentException ex { super(s); } + + /** + *

+ * Constructs a IllegalArgumentException using + * the specified error message, which should give further details + * as to the reason for this exception. The specified cause + * Throwable 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. + *

+ *

+ * Note: the detail message from the cause is not + * automatically incorporated into the resulting detail message of + * this exception. + *

+ * + * @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); + } + + /** + *

+ * Constructs a IllegalArgumentException using + * the specified cause Throwable, 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. + *

+ *

+ * 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. + *

+ * + * @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.8.2.1 diff -u -3 -p -u -r1.8.2.1 IllegalStateException.java --- java/lang/IllegalStateException.java 19 Feb 2005 10:50:36 -0000 1.8.2.1 +++ java/lang/IllegalStateException.java 19 Mar 2005 11:40:38 -0000 @@ -51,8 +51,9 @@ package java.lang; * * @author Brian Jones * @author Warren Levy (address@hidden) + * @author Andrew John Hughes (address@hidden) * @since 1.1 - * @status updated to 1.4 + * @status updated to 1.5 */ public class IllegalStateException extends RuntimeException { @@ -77,4 +78,58 @@ public class IllegalStateException exten { super(s); } + + /** + *

+ * Constructs a IllegalStateException using + * the specified error message, which should give further details + * as to the reason for this exception. The specified cause + * Throwable 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. + *

+ *

+ * Note: the detail message from the cause is not + * automatically incorporated into the resulting detail message of + * this exception. + *

+ * + * @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); + } + + /** + *

+ * Constructs a IllegalStateException using + * the specified cause Throwable, 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. + *

+ *

+ * 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. + *

+ * + * @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.8.2.1 diff -u -3 -p -u -r1.8.2.1 SecurityException.java --- java/lang/SecurityException.java 19 Feb 2005 10:50:37 -0000 1.8.2.1 +++ java/lang/SecurityException.java 19 Mar 2005 11:40:42 -0000 @@ -45,8 +45,9 @@ package java.lang; * * @author Brian Jones * @author Warren Levy (address@hidden) + * @author Andrew John Hughes (address@hidden) * @see SecurityManager - * @status updated to 1.4 + * @status updated to 1.5 */ public class SecurityException extends RuntimeException { @@ -71,4 +72,57 @@ public class SecurityException extends R { super(s); } + + /** + *

+ * Constructs a SecurityException using + * the specified error message, which should give further details + * as to the reason for this exception. The specified cause + * Throwable 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. + *

+ *

+ * Note: the detail message from the cause is not + * automatically incorporated into the resulting detail message of + * this exception. + *

+ * + * @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); + } + + /** + *

+ * Constructs a SecurityException using + * the specified cause Throwable, 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. + *

+ *

+ * 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. + *

+ * + * @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.10.2.1 diff -u -3 -p -u -r1.10.2.1 UnsupportedOperationException.java --- java/lang/UnsupportedOperationException.java 19 Feb 2005 10:50:37 -0000 1.10.2.1 +++ java/lang/UnsupportedOperationException.java 19 Mar 2005 11:40:42 -0000 @@ -44,8 +44,9 @@ package java.lang; * requested of it that it does not support. * * @author Warren Levy (address@hidden) + * @author Andrew John Hughes (address@hidden) * @since 1.2 - * @status updated to 1.4 + * @status updated to 1.5 */ public class UnsupportedOperationException extends RuntimeException { @@ -70,4 +71,57 @@ public class UnsupportedOperationExcepti { super(s); } + + /** + *

+ * Constructs a UnsupportedOperationException using + * the specified error message, which should give further details + * as to the reason for this exception. The specified cause + * Throwable 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. + *

+ *

+ * Note: the detail message from the cause is not + * automatically incorporated into the resulting detail message of + * this exception. + *

+ * + * @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); + } + + /** + *

+ * Constructs a UnsupportedOperationException using + * the specified cause Throwable, 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. + *

+ *

+ * 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. + *

+ * + * @param cause the cause of this exception, or null if the cause + * is unknown. + * @since 1.5 + */ + public UnsupportedOperationException(Throwable cause) + { + super(cause); + } + }