1 /* 2 * @(#)CommunicationException.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 the client is 12 * unable to communicate with the directory or naming service. 13 * The inability to communicate with the service might be a result 14 * of many factors, such as network partitioning, hardware or interface problems, 15 * failures on either the client or server side. 16 * This exception is meant to be used to capture such communication problems. 17 * <p> 18 * Synchronization and serialization issues that apply to NamingException 19 * apply directly here. 20 * 21 * @author Rosanna Lee 22 * @author Scott Seligman 23 * @version 1.7 03/12/19 24 * @since 1.3 25 */ 26 public class CommunicationException extends NamingException { 27 /** 28 * Constructs a new instance of CommunicationException using the 29 * arguments supplied. 30 * 31 * @param explanation Additional detail about this exception. 32 * @see java.lang.Throwable#getMessage 33 */ 34 public CommunicationException(String explanation) { 35 super(explanation); 36 } 37 38 /** 39 * Constructs a new instance of CommunicationException. 40 */ 41 public CommunicationException() { 42 super(); 43 } 44 45 /** 46 * Use serialVersionUID from JNDI 1.1.1 for interoperability 47 */ 48 private static final long serialVersionUID = 3618507780299986611L; 49 } 50