Artifact Content
Not logged in

Artifact 32cab5bf35d3ecf9bb121f3f80efade6d1c3a7e3:


/*
 * PackageNameException.java
 *
 * Copyright (c) 2006 Moses DeJong
 *
 * See the file "license.terms" for information on usage and
 * redistribution of this file, and for a DISCLAIMER OF ALL
 * WARRANTIES.
 * 
 * RCS: @(#) $Id: PackageNameException.java,v 1.1 2006/04/13 07:36:50 mdejong Exp $
 *
 */

package tcl.lang;

/**
 * This exception is thrown by the TclClassLoader when an attempt
 * to load a class from any package that starts with the java.*
 * or tcl.* prefix is made. Classes in these packages can be
 * loaded with the system class loader, but not the TclClassLoader.
 */

public class PackageNameException extends RuntimeException {
     String className;

     public PackageNameException(String msg, String className) {
         super(msg);
         this.className = className;
     }
}