Back to index

plt-scheme  4.2.1
ClassNotFoundException.java
Go to the documentation of this file.
00001 /* ClassNotFoundException.java -- thrown when class definition cannot be found
00002    Copyright (C) 1998, 2002 Free Software Foundation, Inc.
00003 
00004 This file is part of GNU Classpath.
00005 
00006 GNU Classpath is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2, or (at your option)
00009 any later version.
00010 
00011 GNU Classpath is distributed in the hope that it will be useful, but
00012 WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with GNU Classpath; see the file COPYING.  If not, write to the
00018 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019 02111-1307 USA.
00020 
00021 Linking this library statically or dynamically with other modules is
00022 making a combined work based on this library.  Thus, the terms and
00023 conditions of the GNU General Public License cover the whole
00024 combination.
00025 
00026 As a special exception, the copyright holders of this library give you
00027 permission to link this library with independent modules to produce an
00028 executable, regardless of the license terms of these independent
00029 modules, and to copy and distribute the resulting executable under
00030 terms of your choice, provided that you also meet, for each linked
00031 independent module, the terms and conditions of the license of that
00032 module.  An independent module is a module which is not derived from
00033 or based on this library.  If you modify this library, you may extend
00034 this exception to your version of the library, but you are not
00035 obligated to do so.  If you do not wish to do so, delete this
00036 exception statement from your version. */
00037 
00038 
00039 package java.lang;
00040 
00052 public class ClassNotFoundException extends Exception
00053 {
00057   private static final long serialVersionUID = 9176873029745254542L;
00058 
00065   private final Throwable ex;
00066 
00071   public ClassNotFoundException()
00072   {
00073     this(null, null);
00074   }
00075 
00082   public ClassNotFoundException(String s)
00083   {
00084     this(s, null);
00085   }
00086 
00095   public ClassNotFoundException(String s, Throwable ex)
00096   {
00097     super(s, ex);
00098     this.ex = ex;
00099   }
00100 
00109   public Throwable getException()
00110   {
00111     return ex;
00112   }
00113 
00121   public Throwable getCause()
00122   {
00123     return ex;
00124   }
00125 }