Objectivity for Java Reference

com.objy.db
Class ObjyRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.objy.db.ObjyRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FetchFailedException, IsolationException, JavaClassNotFoundException, JavaTypeNMismatchException, NonPersistentClassException, NotJoinedException, ObjectAlreadyPersistentException, ObjectIsDeadException, ObjectNotFoundException, ObjectNotPersistentException, ObjySchemaException, ODMGRuntimeException

public class ObjyRuntimeException
extends RuntimeException

Superclass for all Objectivity/DB unchecked exceptions.

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
ObjyRuntimeException()
          Reserved for internal use; you obtain an exception of this class only by catching unchecked exceptions.
ObjyRuntimeException(String message)
          Reserved for internal use; you obtain an exception of this class only by catching unchecked exceptions.
ObjyRuntimeException(Vector errors)
          Reserved for internal use; you obtain an exception of this class only by catching unchecked exceptions.
 
Method Summary
 Vector errors()
          Gets this exception's exception information objects.
 void reportErrors()
          Prints information about the errors that occurred.
 void setErrors(Vector errors)
          Reserved for internal use; you should not call this method.
 
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

ObjyRuntimeException

public ObjyRuntimeException()
Reserved for internal use; you obtain an exception of this class only by catching unchecked exceptions.

You should not use this constructor directly.


ObjyRuntimeException

public ObjyRuntimeException(String message)
Reserved for internal use; you obtain an exception of this class only by catching unchecked exceptions.

You should not use this constructor directly.


ObjyRuntimeException

public ObjyRuntimeException(Vector errors)
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

errors

public Vector errors()
Gets this exception's exception information objects.

Returns:
The information objects describing the Objectivity/DB errors that occurred, in the order in which the errors were reported, or null if no Objectivity/DB errors occurred.

setErrors

public void setErrors(Vector errors)
Reserved for internal use; you should not call this method.

reportErrors

public void reportErrors()
Prints information about the errors that occurred.

If this exception has exception information objects, this method prints the ID and description of each error, in the order in which the errors were reported.


Objectivity for Java Reference

Copyright © 2000 Objectivity, Inc. All rights reserved.