/// <summary>
		/// Returns a <see cref="System.String"/> representation of the supplied
		/// <see cref="Spring.Transaction.TransactionOutcomeState"/>.
		/// </summary>
		/// <param name="outcomeState">
		/// The <see cref="Spring.Transaction.TransactionOutcomeState"/> value that
		/// is to be stringified.
		/// </param>
		/// <returns>A <see cref="System.String"/> representation.</returns>
		public static string GetStateString( TransactionOutcomeState outcomeState )
		{
			return Enum.GetName (typeof (TransactionOutcomeState), outcomeState);
		}
		/// <summary>
		/// Creates a new instance of the
		/// <see cref="Spring.Transaction.CannotCreateTransactionException"/> class.
		/// </summary>
		/// <param name="info">
		/// The <see cref="System.Runtime.Serialization.SerializationInfo"/>
		/// that holds the serialized object data about the exception being thrown.
		/// </param>
		/// <param name="context">
		/// The <see cref="System.Runtime.Serialization.StreamingContext"/>
		/// that contains contextual information about the source or destination.
		/// </param>
		protected HeuristicCompletionException( SerializationInfo info, StreamingContext context )
			: base( info, context ) 
		{
			_outcomeState = ( TransactionOutcomeState ) info.GetInt32( "outcomeState" );
		}
		/// <summary>
		/// Creates a new instance of the
		/// <see cref="Spring.Transaction.CannotCreateTransactionException"/> class
		/// with the specified <see cref="Spring.Transaction.TransactionOutcomeState"/>
		/// and inner exception.
		/// </summary>
		/// <param name="outcomeState">
		/// The <see cref="Spring.Transaction.TransactionOutcomeState"/>
		/// for the transaction.
		/// </param>
		/// <param name="innerException">
		/// The inner exception that is being wrapped.
		/// </param>
		public HeuristicCompletionException(
			TransactionOutcomeState outcomeState, Exception innerException)
			: base( "Heuristic completion: outcome state is " + GetStateString(outcomeState), innerException )
		{
			_outcomeState = outcomeState;
		}
 /// <summary>
 /// Returns a <see cref="System.String"/> representation of the supplied
 /// <see cref="Spring.Transaction.TransactionOutcomeState"/>.
 /// </summary>
 /// <param name="outcomeState">
 /// The <see cref="Spring.Transaction.TransactionOutcomeState"/> value that
 /// is to be stringified.
 /// </param>
 /// <returns>A <see cref="System.String"/> representation.</returns>
 public static string GetStateString(TransactionOutcomeState outcomeState)
 {
     return(Enum.GetName(typeof(TransactionOutcomeState), outcomeState));
 }
 /// <summary>
 /// Creates a new instance of the
 /// <see cref="Spring.Transaction.CannotCreateTransactionException"/> class.
 /// </summary>
 /// <param name="info">
 /// The <see cref="System.Runtime.Serialization.SerializationInfo"/>
 /// that holds the serialized object data about the exception being thrown.
 /// </param>
 /// <param name="context">
 /// The <see cref="System.Runtime.Serialization.StreamingContext"/>
 /// that contains contextual information about the source or destination.
 /// </param>
 protected HeuristicCompletionException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _outcomeState = ( TransactionOutcomeState )info.GetInt32("outcomeState");
 }
 /// <summary>
 /// Creates a new instance of the
 /// <see cref="Spring.Transaction.CannotCreateTransactionException"/> class
 /// with the specified <see cref="Spring.Transaction.TransactionOutcomeState"/>
 /// and inner exception.
 /// </summary>
 /// <param name="outcomeState">
 /// The <see cref="Spring.Transaction.TransactionOutcomeState"/>
 /// for the transaction.
 /// </param>
 /// <param name="innerException">
 /// The inner exception that is being wrapped.
 /// </param>
 public HeuristicCompletionException(
     TransactionOutcomeState outcomeState, Exception innerException)
     : base("Heuristic completion: outcome state is " + GetStateString(outcomeState), innerException)
 {
     _outcomeState = outcomeState;
 }