01: /*
02: * PackageNameException.java
03: *
04: * Copyright (c) 2006 Moses DeJong
05: *
06: * See the file "license.terms" for information on usage and
07: * redistribution of this file, and for a DISCLAIMER OF ALL
08: * WARRANTIES.
09: *
10: * RCS: @(#) $Id: PackageNameException.java,v 1.1 2006/04/13 07:36:50 mdejong Exp $
11: *
12: */
13:
14: package tcl.lang;
15:
16: /**
17: * This exception is thrown by the TclClassLoader when an attempt
18: * to load a class from any package that starts with the java.*
19: * or tcl.* prefix is made. Classes in these packages can be
20: * loaded with the system class loader, but not the TclClassLoader.
21: */
22:
23: public class PackageNameException extends RuntimeException {
24: String className;
25:
26: public PackageNameException(String msg, String className) {
27: super(msg);
28: this.className = className;
29: }
30: }
|