com.atomikos.icatch.HeurCommitException.orig Maven / Gradle / Ivy
/**
* Copyright (C) 2010 Atomikos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//$Id: HeurCommitException.java,v 1.1.1.1 2006/08/29 10:01:07 guy Exp $
//$Log: HeurCommitException.java,v $
//Revision 1.1.1.1 2006/08/29 10:01:07 guy
//Import of 3.0 essentials edition.
//
//Revision 1.1.1.1 2006/04/29 08:55:40 guy
//Initial import.
//
//Revision 1.1.1.1 2006/03/29 13:21:34 guy
//Imported.
//
//Revision 1.1.1.1 2006/03/23 16:25:29 guy
//Imported.
//
//Revision 1.1.1.1 2006/03/22 13:46:57 guy
//Import.
//
//Revision 1.1.1.1 2006/03/09 14:59:22 guy
//Imported 3.0 development into CVS repository.
//
//Revision 1.4 2005/08/09 15:23:38 guy
//Updated javadoc, and redesigned CompositeTransaction interface
//(eliminated TransactionControl and CompositeTerminator).
//
//Revision 1.3 2004/10/12 13:03:26 guy
//Updated docs (changed Guy Pardon to Atomikos in many places).
//
//Revision 1.2 2004/03/22 15:36:53 guy
//Merged-in changes from branch redesign-4-2003.
//
//Revision 1.1.1.1.10.1 2003/06/20 16:31:32 guy
//*** empty log message ***
//
//Revision 1.1.1.1 2001/10/09 12:37:25 guy
//Core module
//
//Revision 1.1 2001/02/21 19:51:23 pardon
//Redesign!
//
package com.atomikos.icatch;
/**
*
*
*A heuristic extension supporting messages.
*/
public class HeurCommitException extends Exception
{
protected HeuristicMessage[] msgs_=null;
/**
*Constructor.
*@param msgs an array of heuristic messages,
*or null if none.
*/
public HeurCommitException(HeuristicMessage[] msgs)
{
super("Heuristic Exception");
msgs_=msgs;
}
/**
*Get any heuristic messages.
*
*@return HeuristicMessage[] A list of messages, or null if none.
*/
public HeuristicMessage[] getHeuristicMessages(){
return msgs_;
}
}