Package org.sqlite

Examples of org.sqlite.SQLiteErrorCode


     * @param errorMessage Error message to be passed.
     * @return Formated SQLException with error code and message.
     * @throws SQLException
     */
    public static SQLException newSQLException(int errorCode, String errorMessage) throws SQLException {
        SQLiteErrorCode code = SQLiteErrorCode.getErrorCode(errorCode);
        SQLException e = new SQLException(String.format("%s (%s)", code, errorMessage), null, code.code);
        return e;
    }
View Full Code Here

TOP

Related Classes of org.sqlite.SQLiteErrorCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.