View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.api.transaction;
8   
9   import org.mule.api.MuleException;
10  import org.mule.config.i18n.Message;
11  
12  /**
13   * <p>
14   * <code>TransactionException</code> is thrown when an exception occurs while
15   * trying to create, start commit or rollback an exception
16   */
17  public class TransactionException extends MuleException
18  {
19      /**
20       * Serial version
21       */
22      private static final long serialVersionUID = -3470229644235978820L;
23  
24      /**
25       * @param message the exception message
26       */
27      public TransactionException(Message message)
28      {
29          super(message);
30      }
31  
32      /**
33       * @param message the exception message
34       * @param cause the exception that cause this exception to be thrown
35       */
36      public TransactionException(Message message, Throwable cause)
37      {
38          super(message, cause);
39      }
40  
41      public TransactionException(Throwable cause)
42      {
43          super(cause);
44      }
45  }