KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > exception > TCLogicalSubclassNotPortableException


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.exception;
5
6
7 /**
8  * Thrown when someone tries to call an unimplemented feature.
9  */

10 public class TCLogicalSubclassNotPortableException extends TCRuntimeException {
11   private static final ExceptionWrapper wrapper = new ExceptionWrapperImpl();
12
13   private String JavaDoc className;
14   private String JavaDoc superClassName;
15
16   public TCLogicalSubclassNotPortableException(String JavaDoc className, String JavaDoc superClassName) {
17     super(wrapper.wrap(className + " is a subclass of the logically managed superclass " + superClassName + ". It has contained structure that is currently not supported. Perhaps it has overridden a protected method." ));
18     this.className = className;
19     this.superClassName = superClassName;
20   }
21
22   public String JavaDoc getClassName() {
23     return className;
24   }
25
26   public String JavaDoc getSuperClassName() {
27     return superClassName;
28   }
29   
30 }
Popular Tags