ClassifierNotFoundException.java

  1. /* $Id$
  2.  *****************************************************************************
  3.  * Copyright (c) 2009 Contributors - see below
  4.  * All rights reserved. This program and the accompanying materials
  5.  * are made available under the terms of the Eclipse Public License v1.0
  6.  * which accompanies this distribution, and is available at
  7.  * http://www.eclipse.org/legal/epl-v10.html
  8.  *
  9.  * Contributors:
  10.  *    thn
  11.  *****************************************************************************
  12.  *
  13.  * Some portions of this file was previously release using the BSD License:
  14.  */

  15. // Copyright (c) 2003-2007 The Regents of the University of California. All
  16. // Rights Reserved. Permission to use, copy, modify, and distribute this
  17. // software and its documentation without fee, and without a written
  18. // agreement is hereby granted, provided that the above copyright notice
  19. // and this paragraph appear in all copies.  This software program and
  20. // documentation are copyrighted by The Regents of the University of
  21. // California. The software program and documentation are supplied "AS
  22. // IS", without any accompanying services from The Regents. The Regents
  23. // does not warrant that the operation of the program will be
  24. // uninterrupted or error-free. The end-user understands that the program
  25. // was developed for research purposes and is advised not to rely
  26. // exclusively on the program for any reason.  IN NO EVENT SHALL THE
  27. // UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
  28. // SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
  29. // ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
  30. // THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
  31. // SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY
  32. // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  33. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
  34. // PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
  35. // CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
  36. // UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

  37. package org.argouml.language.java.reveng.classfile;

  38. /**
  39.    This is thrown when a classifier can not be located in the model or
  40.    via the classpath.
  41. */
  42. class ClassifierNotFoundException extends Exception {
  43.     public ClassifierNotFoundException(String name) {
  44.     super("classifier not found: " + name);
  45.     }
  46. }

  47. class JavaParseException extends RuntimeException {
  48.     public JavaParseException(String error) {
  49.         super(error);
  50.     }
  51. }

  52. class ParseStateException extends JavaParseException {
  53.     public ParseStateException(String error) {
  54.         super("Unexpected parser state : " + error);
  55.     }
  56. }

  57. class UnsupportedJavaFeatureException extends JavaParseException {
  58.     public UnsupportedJavaFeatureException(String feature, String name) {
  59.         super("Unsupported Java parser feature " + feature + " - identifier: "
  60.                 + name);
  61.     }
  62. }