org.apache.openjpa.persistence
Class PersistenceExceptions

java.lang.Object
  extended by org.apache.openjpa.util.Exceptions
      extended by org.apache.openjpa.persistence.PersistenceExceptions

public class PersistenceExceptions
extends Exceptions

Converts from OpenJPA to persistence exception types.

Author:
Abe White, Marc Prud'hommeaux

Field Summary
static RuntimeExceptionTranslator TRANSLATOR
           
 
Fields inherited from class org.apache.openjpa.util.Exceptions
EMPTY_THROWABLES
 
Constructor Summary
PersistenceExceptions()
           
 
Method Summary
static RuntimeException toPersistenceException(Throwable t)
          Convert the given throwable to the proper persistence exception.
 
Methods inherited from class org.apache.openjpa.util.Exceptions
printNestedThrowables, printNestedThrowables, replaceFailedObject, replaceNestedThrowables, toString, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSLATOR

public static final RuntimeExceptionTranslator TRANSLATOR
Constructor Detail

PersistenceExceptions

public PersistenceExceptions()
Method Detail

toPersistenceException

public static RuntimeException toPersistenceException(Throwable t)
Convert the given throwable to the proper persistence exception.



Copyright © 2006 Apache Software Foundation. All Rights Reserved.