1 /* 2 * @(#)OperationNotSupportedException.java 1.7 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 exception is thrown when a context implementation does not support 12 * the operation being invoked. 13 * For example, if a server does not support the Context.bind() method 14 * it would throw OperationNotSupportedException when the bind() method 15 * is invoked on it. 16 * <p> 17 * Synchronization and serialization issues that apply to NamingException 18 * apply directly here. 19 * 20 * @author Rosanna Lee 21 * @author Scott Seligman 22 * @version 1.7 03/12/19 23 * @since 1.3 24 */ 25 26 public class OperationNotSupportedException extends NamingException { 27 /** 28 * Constructs a new instance of OperationNotSupportedException. 29 * All fields default to null. 30 */ 31 public OperationNotSupportedException() { 32 super(); 33 } 34 35 /** 36 * Constructs a new instance of OperationNotSupportedException using an 37 * explanation. All other fields default to null. 38 * 39 * @param explanation Possibly null additional detail about this exception 40 * @see java.lang.Throwable#getMessage 41 */ 42 public OperationNotSupportedException(String explanation) { 43 super(explanation); 44 } 45 46 /** 47 * Use serialVersionUID from JNDI 1.1.1 for interoperability 48 */ 49 private static final long serialVersionUID = 5493232822427682064L; 50 } 51