⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 daoruntimeexception.java

📁 权限系统以为业务逻辑提供服务为目标。这个系统的设计目的
💻 JAVA
字号:
package com.tairun.component.popedom.util;

import org.apache.commons.lang.exception.NestableRuntimeException;
import org.springframework.jdbc.support.SQLExceptionTranslator;
import org.springframework.dao.DataAccessException;

import java.sql.SQLException;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2005-12-6
 * Time: 9:56:05
 * To change this template use File | Settings | File Templates.
 */
public class DAORuntimeException extends NestableRuntimeException implements SQLExceptionTranslator{

    /**
     * Constructs an Exception with a detailed message.
     *
     * @param message The message associated with the exception.
     */
    public DAORuntimeException(final String message) {
        super(message);
    }

    /**
     * Constructs an Exception with a detailed message and detailed cause.
     *
     * @param message The message associated with the exception.
     * @param cause   the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
     */
    public DAORuntimeException(final String message, final Throwable cause) {
        super(message, cause);
    }

    /**
     * Constructs an Exception with a detailed cause.
     *
     * @param cause the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
     */
    public DAORuntimeException(final Throwable cause) {
        super(cause);
    }

    public DataAccessException translate(String s, String s1, SQLException e) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}

⌨️ 快捷键说明

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