/** * Translate the given general exception. */ private static Throwable translateGeneralException(OpenJPAException ke) { Exception e = new org.apache.openjpa.persistence.PersistenceException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); e.setStackTrace(ke.getStackTrace()); return e; }
/** * Translate the given general exception. */ private static Throwable translateGeneralException(OpenJPAException ke) { Exception e = new org.apache.openjpa.persistence.PersistenceException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); e.setStackTrace(ke.getStackTrace()); return e; }
/** * Translate the given general exception. */ private static Throwable translateGeneralException(OpenJPAException ke) { Exception e = new org.apache.openjpa.persistence.PersistenceException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); e.setStackTrace(ke.getStackTrace()); return e; }
/** * Translate the given general exception. */ private static Throwable translateGeneralException(OpenJPAException ke) { Exception e = new org.apache.openjpa.persistence.PersistenceException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); e.setStackTrace(ke.getStackTrace()); return e; }
/** * Translate the given general exception. */ private static Throwable translateGeneralException(OpenJPAException ke) { Exception e = new org.apache.openjpa.persistence.PersistenceException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); e.setStackTrace(ke.getStackTrace()); return e; }
/** * Translate the given store exception. */ private static Throwable translateStoreException(OpenJPAException ke) { Exception e; switch (ke.getSubtype()) { case StoreException.OBJECT_NOT_FOUND: e = new org.apache.openjpa.persistence.EntityNotFoundException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); break; case StoreException.OPTIMISTIC: case StoreException.LOCK: e = new org.apache.openjpa.persistence.OptimisticLockException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); break; case StoreException.OBJECT_EXISTS: e = new org.apache.openjpa.persistence.EntityExistsException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); break; default: e = new org.apache.openjpa.persistence.PersistenceException (ke.getMessage(), getNestedThrowables(ke), getFailedObject(ke), ke.isFatal()); } e.setStackTrace(ke.getStackTrace()); return e; }
e = new org.apache.openjpa.persistence.PersistenceException(msg, nested, failed, fatal); e.setStackTrace(ke.getStackTrace()); return e;
e = new org.apache.openjpa.persistence.PersistenceException(msg, nested, failed, fatal); e.setStackTrace(ke.getStackTrace()); return e;
e = new org.apache.openjpa.persistence.PersistenceException(msg, nested, failed, fatal); e.setStackTrace(ke.getStackTrace()); return e;
e = new org.apache.openjpa.persistence.PersistenceException(msg, nested, failed, fatal); e.setStackTrace(ke.getStackTrace()); return e;
e = translateCause(ke); e.setStackTrace(ke.getStackTrace()); return e;
e = translateCause(ke); e.setStackTrace(ke.getStackTrace()); return e;
e = translateCause(ke); e.setStackTrace(ke.getStackTrace()); return e;
e = translateCause(ke); e.setStackTrace(ke.getStackTrace()); return e;
getFailedObject(ke), ke.isFatal()); e.setStackTrace(ke.getStackTrace()); return e;