/[classpath]/classpath/java/lang/IllegalArgumentException.java
ViewVC logotype

Diff of /classpath/java/lang/IllegalArgumentException.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.1 by gnu_andrew, Sat Feb 19 10:50:36 2005 UTC revision 1.8.2.2 by gnu_andrew, Sat Mar 19 17:18:52 2005 UTC
# Line 47  package java.lang; Line 47  package java.lang;
47   *   *
48   * @author Brian Jones   * @author Brian Jones
49   * @author Warren Levy (warrenl@cygnus.com)   * @author Warren Levy (warrenl@cygnus.com)
50   * @status updated to 1.4   * @author Andrew John Hughes (gnu_andrew@member.fsf.org)
51     * @status updated to 1.5
52   */   */
53  public class IllegalArgumentException extends RuntimeException  public class IllegalArgumentException extends RuntimeException
54  {  {
# Line 72  public class IllegalArgumentException ex Line 73  public class IllegalArgumentException ex
73    {    {
74      super(s);      super(s);
75    }    }
76    
77      /**
78       * <p>
79       * Constructs a <code>IllegalArgumentException</code> using
80       * the specified error message, which should give further details
81       * as to the reason for this exception.  The specified cause
82       * <code>Throwable</code> may be used to provide additional history,
83       * with regards to the root of the problem.  It is perfectly valid
84       * for this to be null, if the cause of the problem is unknown.
85       * </p>
86       * <p>
87       * <strong>Note</strong>: the detail message from the cause is not
88       * automatically incorporated into the resulting detail message of
89       * this exception.
90       * </p>
91       *
92       * @param message the detail message, which should give the reason for
93       *                this exception being thrown.
94       * @param cause the cause of this exception, or null if the cause
95       *              is unknown.
96       * @since 1.5
97       */
98      public IllegalArgumentException(String message, Throwable cause)
99      {
100        super(message, cause);
101      }
102    
103      /**
104       * <p>
105       * Constructs a <code>IllegalArgumentException</code> using
106       * the specified cause <code>Throwable</code>, which may be used
107       * to provide additional history, with regards to the root of the
108       * problem.  It is perfectly valid for this to be null, if the
109       * cause of the problem is unknown.
110       * </p>
111       * <p>
112       * The detail message is automatically constructed from the detail
113       * message of the supplied causal exception.  If the cause is null,
114       * then the detail message will also be null.  Otherwise, the detail
115       * message of this exception will be that of the causal exception.
116       * This makes this constructor very useful for simply wrapping another
117       * exception.
118       * </p>
119       *
120       * @param cause the cause of this exception, or null if the cause
121       *              is unknown.
122       * @since 1.5
123       */
124      public IllegalArgumentException(Throwable cause)
125      {
126        super(cause);
127      }
128    
129  }  }

Legend:
Removed from v.1.8.2.1  
changed lines
  Added in v.1.8.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26