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 (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 @@ { 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.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 (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 @@ { 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.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 (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 @@ { 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.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 (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 @@ { 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); + } + }