/**
* <copyright> Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others All rights
* reserved. This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html Contributors: Martin Taal </copyright> $Id:
* HbStoreException.java,v 1.3 2007/02/08 23:11:37 mtaal Exp $
*/
package org.eclipse.emf.teneo.hibernate;
import org.eclipse.emf.teneo.TeneoException;
/**
* Is used to throw runtime emf/jpox integration exceptions. This class offers automatic logging to
* commons logging. Note that this class extends RuntimeException, so no forced throws and catch
* statements. Although there are very differing views on this topic but it is our experience that
* to many checked exceptions only distract the programmer and have no added value.
*
* @author <a href="mailto:mtaal@elver.org">Martin Taal</a>
* @version $Revision: 1.5 $
*/
public class HbStoreException extends TeneoException {
/**
* Serializable id
*/
private static final long serialVersionUID = 7433341056815136417L;
/**
* The constructor, logs the exception also
*/
public HbStoreException(String msg, Throwable cause) {
super(msg, cause);
}
/**
* The constructor, logs the exception also
*/
public HbStoreException(Throwable cause) {
this(cause.getMessage(), cause);
}
/**
* The constructor, logs the exception also
*/
public HbStoreException(String msg) {
super(msg);
}
}