blob: ed1fc428fa9c1924bd7800d90d854359d7a3f897 [file] [log] [blame]
/*
* Copyright (c) 2010-2012 Eike Stepper (Berlin, Germany) 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:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.emf.cdo.util;
import org.eclipse.emf.cdo.transaction.CDOTransaction;
/**
* A checked exception being thrown from {@link CDOTransaction#commit()} in case of unrecoverable commit problems such
* as commit conflicts.
*
* @author Eike Stepper
* @since 3.0
* @noextend This interface is not intended to be extended by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class CommitException extends Exception
{
private static final long serialVersionUID = 1L;
public CommitException()
{
}
public CommitException(String message)
{
super(message);
}
public CommitException(Throwable cause)
{
super(cause);
}
public CommitException(String message, Throwable cause)
{
super(message, cause);
}
/**
* @since 4.2
*/
public boolean isLocal()
{
return false;
}
/**
* @since 4.2
*/
public boolean isFatal()
{
return true;
}
}