001/*
002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Stephane Lacoin, Julien Carsique
011 *
012 * $Id$
013 */
014
015package org.nuxeo.runtime.transaction;
016
017/**
018 * Reified checked errors caught while operating the transaction. The error is logged but the error condition is
019 * re-throwed as a runtime, enabling transaction helper callers being able to be aware about the error..
020 *
021 * @author "Stephane Lacoin at Nuxeo (aka matic)"
022 */
023public class TransactionRuntimeException extends RuntimeException {
024
025    private static final long serialVersionUID = 1L;
026
027    public TransactionRuntimeException(String msg, Throwable error) {
028        super(msg, error);
029    }
030
031    public TransactionRuntimeException(String msg) {
032        super(msg);
033    }
034
035}