1 /* 2 * @(#)StubNotFoundException.java 1.16 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 java.rmi; 9 10 /** 11 * A <code>StubNotFoundException</code> is thrown if a valid stub class 12 * could not be found for a remote object when it is exported. 13 * A <code>StubNotFoundException</code> may also be 14 * thrown when an activatable object is registered via the 15 * <code>java.rmi.activation.Activatable.register</code> method. 16 * 17 * @version 1.16, 12/19/03 18 * @author Roger Riggs 19 * @since JDK1.1 20 * @see java.rmi.server.UnicastRemoteObject 21 * @see java.rmi.activation.Activatable 22 */ 23 public class StubNotFoundException extends RemoteException { 24 25 /* indicate compatibility with JDK 1.1.x version of class */ 26 private static final long serialVersionUID = -7088199405468872373L; 27 28 /** 29 * Constructs a <code>StubNotFoundException</code> with the specified 30 * detail message. 31 * 32 * @param s the detail message 33 * @since JDK1.1 34 */ 35 public StubNotFoundException(String s) { 36 super(s); 37 } 38 39 /** 40 * Constructs a <code>StubNotFoundException</code> with the specified 41 * detail message and nested exception. 42 * 43 * @param s the detail message 44 * @param ex the nested exception 45 * @since JDK1.1 46 */ 47 public StubNotFoundException(String s, Exception ex) { 48 super(s, ex); 49 } 50 } 51