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

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

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