jdk/src/java.base/share/classes/java/lang/SecurityException.java
changeset 32033 bf24e33c7919
parent 25859 3317bb8137f4
equal deleted inserted replaced
32032:22badc53802f 32033:bf24e33c7919
    34 public class SecurityException extends RuntimeException {
    34 public class SecurityException extends RuntimeException {
    35 
    35 
    36     private static final long serialVersionUID = 6878364983674394167L;
    36     private static final long serialVersionUID = 6878364983674394167L;
    37 
    37 
    38     /**
    38     /**
    39      * Constructs a <code>SecurityException</code> with no detail  message.
    39      * Constructs a {@code SecurityException} with no detail message.
    40      */
    40      */
    41     public SecurityException() {
    41     public SecurityException() {
    42         super();
    42         super();
    43     }
    43     }
    44 
    44 
    45     /**
    45     /**
    46      * Constructs a <code>SecurityException</code> with the specified
    46      * Constructs a {@code SecurityException} with the specified
    47      * detail message.
    47      * detail message.
    48      *
    48      *
    49      * @param   s   the detail message.
    49      * @param   s   the detail message.
    50      */
    50      */
    51     public SecurityException(String s) {
    51     public SecurityException(String s) {
    52         super(s);
    52         super(s);
    53     }
    53     }
    54 
    54 
    55     /**
    55     /**
    56      * Creates a <code>SecurityException</code> with the specified
    56      * Creates a {@code SecurityException} with the specified
    57      * detail message and cause.
    57      * detail message and cause.
    58      *
    58      *
    59      * @param message the detail message (which is saved for later retrieval
    59      * @param message the detail message (which is saved for later retrieval
    60      *        by the {@link #getMessage()} method).
    60      *        by the {@link #getMessage()} method).
    61      * @param cause the cause (which is saved for later retrieval by the
    61      * @param cause the cause (which is saved for later retrieval by the
    62      *        {@link #getCause()} method).  (A <tt>null</tt> value is permitted,
    62      *        {@link #getCause()} method).  (A {@code null} value is permitted,
    63      *        and indicates that the cause is nonexistent or unknown.)
    63      *        and indicates that the cause is nonexistent or unknown.)
    64      * @since 1.5
    64      * @since 1.5
    65      */
    65      */
    66     public SecurityException(String message, Throwable cause) {
    66     public SecurityException(String message, Throwable cause) {
    67         super(message, cause);
    67         super(message, cause);
    68     }
    68     }
    69 
    69 
    70     /**
    70     /**
    71      * Creates a <code>SecurityException</code> with the specified cause
    71      * Creates a {@code SecurityException} with the specified cause
    72      * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
    72      * and a detail message of {@code (cause==null ? null : cause.toString())}
    73      * (which typically contains the class and detail message of
    73      * (which typically contains the class and detail message of
    74      * <tt>cause</tt>).
    74      * {@code cause}).
    75      *
    75      *
    76      * @param cause the cause (which is saved for later retrieval by the
    76      * @param cause the cause (which is saved for later retrieval by the
    77      *        {@link #getCause()} method).  (A <tt>null</tt> value is permitted,
    77      *        {@link #getCause()} method).  (A {@code null} value is permitted,
    78      *        and indicates that the cause is nonexistent or unknown.)
    78      *        and indicates that the cause is nonexistent or unknown.)
    79      * @since 1.5
    79      * @since 1.5
    80      */
    80      */
    81     public SecurityException(Throwable cause) {
    81     public SecurityException(Throwable cause) {
    82         super(cause);
    82         super(cause);