Objectivity for Java Reference

com.objy.db
Class NonPersistentClassException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.objy.db.ObjyRuntimeException
                          |
                          +--com.objy.db.NonPersistentClassException
All Implemented Interfaces:
Serializable

public class NonPersistentClassException
extends ObjyRuntimeException

Signals an attempt to use a class that is not persistence capable in a context that requires a persistence-capable class.

Note: You should not create or throw an exception of this class; you obtain an instance of this class by catching unchecked exceptions.

See Also:
Serialized Form

Constructor Summary
NonPersistentClassException(String msg, String className)
          Reserved for internal use; you obtain an exception of this class only by catching unchecked exceptions.
 
Method Summary
 String getClassName()
          Returns the name of the class in the exception.
 
Methods inherited from class com.objy.db.ObjyRuntimeException
errors, reportErrors, setErrors
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonPersistentClassException

public NonPersistentClassException(String msg,
                                   String className)
Reserved for internal use; you obtain an exception of this class only by catching unchecked exceptions.

You should not use this constructor directly.

Method Detail

getClassName

public String getClassName()
Returns the name of the class in the exception.

This method returns the name of the class that caused this exception to be thrown.

Returns:
The name of the class.

Objectivity for Java Reference

Copyright © 2000 Objectivity, Inc. All rights reserved.