jtulach@120: /* jtulach@120: * Copyright (c) 1995, 2003, Oracle and/or its affiliates. All rights reserved. jtulach@120: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jtulach@120: * jtulach@120: * This code is free software; you can redistribute it and/or modify it jtulach@120: * under the terms of the GNU General Public License version 2 only, as jtulach@120: * published by the Free Software Foundation. Oracle designates this jtulach@120: * particular file as subject to the "Classpath" exception as provided jtulach@120: * by Oracle in the LICENSE file that accompanied this code. jtulach@120: * jtulach@120: * This code is distributed in the hope that it will be useful, but WITHOUT jtulach@120: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jtulach@120: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jtulach@120: * version 2 for more details (a copy is included in the LICENSE file that jtulach@120: * accompanied this code). jtulach@120: * jtulach@120: * You should have received a copy of the GNU General Public License version jtulach@120: * 2 along with this work; if not, write to the Free Software Foundation, jtulach@120: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jtulach@120: * jtulach@120: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jtulach@120: * or visit www.oracle.com if you need additional information or have any jtulach@120: * questions. jtulach@120: */ jtulach@120: package java.lang; jtulach@120: jtulach@120: /** jtulach@120: * Thrown by the security manager to indicate a security violation. jtulach@120: * jtulach@120: * @author unascribed jtulach@120: * @see java.lang.SecurityManager jtulach@120: * @since JDK1.0 jtulach@120: */ jtulach@120: public class SecurityException extends RuntimeException { jtulach@120: jtulach@120: private static final long serialVersionUID = 6878364983674394167L; jtulach@120: jtulach@120: /** jtulach@120: * Constructs a SecurityException with no detail message. jtulach@120: */ jtulach@120: public SecurityException() { jtulach@120: super(); jtulach@120: } jtulach@120: jtulach@120: /** jtulach@120: * Constructs a SecurityException with the specified jtulach@120: * detail message. jtulach@120: * jtulach@120: * @param s the detail message. jtulach@120: */ jtulach@120: public SecurityException(String s) { jtulach@120: super(s); jtulach@120: } jtulach@120: jtulach@120: /** jtulach@120: * Creates a SecurityException with the specified jtulach@120: * detail message and cause. jtulach@120: * jtulach@120: * @param message the detail message (which is saved for later retrieval jtulach@120: * by the {@link #getMessage()} method). jtulach@120: * @param cause the cause (which is saved for later retrieval by the jtulach@120: * {@link #getCause()} method). (A null value is permitted, jtulach@120: * and indicates that the cause is nonexistent or unknown.) jtulach@120: * @since 1.5 jtulach@120: */ jtulach@120: public SecurityException(String message, Throwable cause) { jtulach@120: super(message, cause); jtulach@120: } jtulach@120: jtulach@120: /** jtulach@120: * Creates a SecurityException with the specified cause jtulach@120: * and a detail message of (cause==null ? null : cause.toString()) jtulach@120: * (which typically contains the class and detail message of jtulach@120: * cause). jtulach@120: * jtulach@120: * @param cause the cause (which is saved for later retrieval by the jtulach@120: * {@link #getCause()} method). (A null value is permitted, jtulach@120: * and indicates that the cause is nonexistent or unknown.) jtulach@120: * @since 1.5 jtulach@120: */ jtulach@120: public SecurityException(Throwable cause) { jtulach@120: super(cause); jtulach@120: } jtulach@120: }