Path: blob/master/src/java.naming/share/classes/javax/naming/NamingSecurityException.java
41152 views
/*1* Copyright (c) 1999, 2001, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.naming;2627/**28* This is the superclass of security-related exceptions29* thrown by operations in the Context and DirContext interfaces.30* The nature of the failure is described by the name of the subclass.31*<p>32* If the program wants to handle this exception in particular, it33* should catch NamingSecurityException explicitly before attempting to34* catch NamingException. A program might want to do this, for example,35* if it wants to treat security-related exceptions specially from36* other sorts of naming exception.37* <p>38* Synchronization and serialization issues that apply to NamingException39* apply directly here.40*41* @author Rosanna Lee42* @author Scott Seligman43* @since 1.344*/4546public abstract class NamingSecurityException extends NamingException {47/**48* Constructs a new instance of NamingSecurityException using the49* explanation supplied. All other fields default to null.50*51* @param explanation Possibly null additional detail about this exception.52* @see java.lang.Throwable#getMessage53*/54public NamingSecurityException(String explanation) {55super(explanation);56}5758/**59* Constructs a new instance of NamingSecurityException.60* All fields are initialized to null.61*/62public NamingSecurityException() {63super();64}6566/**67* Use serialVersionUID from JNDI 1.1.1 for interoperability68*/69private static final long serialVersionUID = 5855287647294685775L;70};717273