All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seedstack.jpa.JpaExceptionHandler Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
/**
 * Copyright (c) 2013-2016, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.jpa;

import org.seedstack.seed.transaction.spi.ExceptionHandler;
import org.seedstack.seed.transaction.spi.TransactionMetadata;

import javax.persistence.EntityTransaction;

/**
 * Exception handler for JPA transactions.
 *
 * @author [email protected]
 * @author [email protected]
 */
public interface JpaExceptionHandler extends ExceptionHandler {

    @Override
    boolean handleException(Exception exception, TransactionMetadata associatedTransactionMetadata, EntityTransaction associatedTransaction);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy