1 /* 2 * @(#)NamingSecurityException.java 1.8 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package javax.naming; 9 10 /** 11 * This is the superclass of security-related exceptions 12 * thrown by operations in the Context and DirContext interfaces. 13 * The nature of the failure is described by the name of the subclass. 14 *<p> 15 * If the program wants to handle this exception in particular, it 16 * should catch NamingSecurityException explicitly before attempting to 17 * catch NamingException. A program might want to do this, for example, 18 * if it wants to treat security-related exceptions specially from 19 * other sorts of naming exception. 20 * <p> 21 * Synchronization and serialization issues that apply to NamingException 22 * apply directly here. 23 * 24 * @author Rosanna Lee 25 * @author Scott Seligman 26 * @version 1.8 03/12/19 27 * @since 1.3 28 */ 29 30 public abstract class NamingSecurityException extends NamingException { 31 /** 32 * Constructs a new instance of NamingSecurityException using the 33 * explanation supplied. All other fields default to null. 34 * 35 * @param explanation Possibly null additional detail about this exception. 36 * @see java.lang.Throwable#getMessage 37 */ 38 public NamingSecurityException(String explanation) { 39 super(explanation); 40 } 41 42 /** 43 * Constructs a new instance of NamingSecurityException. 44 * All fields are initialized to null. 45 */ 46 public NamingSecurityException() { 47 super(); 48 } 49 50 /** 51 * Use serialVersionUID from JNDI 1.1.1 for interoperability 52 */ 53 private static final long serialVersionUID = 5855287647294685775L; 54 }; 55