transactionexception.java

来自「A Java web application, based on Struts 」· Java 代码 · 共 54 行

JAVA
54
字号
/* @LICENSE_COPYRIGHT@ */
package net.sf.irunninglog.transaction;

/**
 * Exception thrown when there an error related to transactional behavior. Any
 * errors related to transactions, units of work, or any other type of
 * transactional support should be thrown as this type of exception.
 *
 * @author <a href="mailto:allan_e_lewis@yahoo.com">Allan Lewis</a>
 * @version $Revision: 1.1.1.1 $ $Date: 2005/06/23 01:49:03 $
 * @since iRunningLog 1.0
 * @see ITransaction
 * @see IUnitOfWork
 * @see TransactionalSupport
 */
public class TransactionException extends Exception {

    /**
     * Create a new exception.
     */
    public TransactionException() {
        this(null, null);
    }

    /**
     * Create a new exception with a specified message.
     *
     * @param message The message for the exception
     */
    public TransactionException(String message) {
        this(message, null);
    }

    /**
     * Create a new exception with a specified cause.
     *
     * @param cause The cause of the exception
     */
    public TransactionException(Throwable cause) {
        this(null, cause);
    }

    /**
     * Create a new exception with a specified message and cause.
     *
     * @param message The message for the exception
     * @param cause The cause of the exception
     */
    public TransactionException(String message, Throwable cause) {
        super(message, cause);
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?