View Javadoc

1   /*
2    * $Id: TransactionStatusException.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transaction;
12  
13  import org.mule.api.transaction.TransactionException;
14  import org.mule.config.i18n.CoreMessages;
15  import org.mule.config.i18n.Message;
16  
17  public class TransactionStatusException extends TransactionException
18  {
19      /**
20       * Serial version
21       */
22      private static final long serialVersionUID = -2408368544426562868L;
23  
24      /**
25       * @param message the exception message
26       */
27      public TransactionStatusException(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 TransactionStatusException(Message message, Throwable cause)
37      {
38          super(message, cause);
39      }
40  
41      public TransactionStatusException(Throwable cause)
42      {
43          super(CoreMessages.transactionCannotReadState(), cause);
44      }
45  }