KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > xmi > ClassNotFoundException


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: ClassNotFoundException.java,v 1.4 2005/06/08 06:16:07 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.xmi;
18
19 import org.eclipse.emf.ecore.EFactory;
20
21 public class ClassNotFoundException extends XMIException
22 {
23   protected String JavaDoc className;
24   protected transient EFactory factory;
25
26   public ClassNotFoundException(String JavaDoc name, EFactory factory, String JavaDoc location, int line, int column)
27   {
28     super("Class '" + name + "' not found.", location, line, column);
29     className = name;
30     this.factory = factory;
31   }
32   
33   public String JavaDoc getName()
34   {
35     return className;
36   }
37   
38   public EFactory getFactory()
39   {
40     return factory;
41   }
42 }
43
Popular Tags