001/* ---------------------------------------------------------------------------- 002 The Kiwi Toolkit - A Java Class Library 003 Copyright (C) 1998-2004 Mark A. Lindner 004 005 This library is free software; you can redistribute it and/or 006 modify it under the terms of the GNU General Public License as 007 published by the Free Software Foundation; either version 2 of the 008 License, or (at your option) any later version. 009 010 This library is distributed in the hope that it will be useful, 011 but WITHOUT ANY WARRANTY; without even the implied warranty of 012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 General Public License for more details. 014 015 You should have received a copy of the GNU General Public License 016 along with this library; if not, write to the Free Software 017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 018 02111-1307, USA. 019 020 The author may be contacted at: mark_a_lindner@yahoo.com 021 ---------------------------------------------------------------------------- 022 $Log: NoAppropriateEditorException.java,v $ 023 Revision 1.5 2004/05/12 19:08:19 markl 024 comment block updates 025 026 Revision 1.4 2003/01/19 09:50:53 markl 027 Javadoc & comment header updates. 028 029 Revision 1.3 2001/03/12 09:27:58 markl 030 Source code and Javadoc cleanup. 031 032 Revision 1.2 1999/01/10 02:56:27 markl 033 added GPL header & RCS tag 034 ---------------------------------------------------------------------------- 035*/ 036 037package kiwi.ui; 038 039/** This exception is thrown by MDI-related classes such as 040 * <code>WorkspaceManager</code> when an appropriate editor for a given class 041 * or object cannot be created. 042 * 043 * @see kiwi.ui.WorkspaceEditorFactory 044 * 045 * @author Mark Lindner 046 */ 047 048public class NoAppropriateEditorException extends Exception 049 { 050 private Class clazz; 051 052 /** Construct a new <code>NoAppropriateEditorException</code>. 053 * 054 * @param msg The message. 055 * @param clazz The class object associated with the requested editor. 056 */ 057 058 public NoAppropriateEditorException(String msg, Class clazz) 059 { 060 super(msg); 061 this.clazz = clazz; 062 } 063 064 /** Get the class object associated with the requested editor. */ 065 066 public Class getObjectType() 067 { 068 return(clazz); 069 } 070 071 } 072 073/* end of source file */