home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / java / rmi / UnexpectedException.java < prev    next >
Encoding:
Java Source  |  1999-05-28  |  1.6 KB  |  55 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)UnexpectedException.java    1.7 98/09/21
  3.  *
  4.  * Copyright 1996-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.rmi;
  16.  
  17. /**
  18.  * An <code>UnexpectedException</code> is thrown if the client of a
  19.  * remote method call receives, as a result of the call, a checked
  20.  * exception that is not among the checked exception types declared in the
  21.  * <code>throws</code> clause of the method in the remote interface.
  22.  * 
  23.  * @version 1.7, 09/21/98
  24.  * @author  Roger Riggs
  25.  * @since   JDK1.1
  26.  */
  27. public class UnexpectedException extends RemoteException {
  28.  
  29.     /* indicate compatibility with JDK 1.1.x version of class */
  30.     private static final long serialVersionUID = 1800467484195073863L;
  31.  
  32.     /**
  33.      * Constructs an <code>UnexpectedException</code> with the specified
  34.      * detail message.
  35.      *
  36.      * @param s the detail message
  37.      * @since JDK1.1
  38.      */
  39.     public UnexpectedException(String s) {
  40.     super(s);
  41.     }
  42.  
  43.     /**
  44.      * Constructs a <code>UnexpectedException</code> with the specified
  45.      * detail message and nested exception.
  46.      *
  47.      * @param s the detail message
  48.      * @param ex the nested exception
  49.      * @since JDK1.1
  50.      */
  51.     public UnexpectedException(String s, Exception ex) {
  52.     super(s, ex);
  53.     }
  54. }
  55.