// Path: domsql/eclipse/plugins/com.ibm.domino.domsql.sqlite/src/com/ibm/domino/domsql/sqlite/DomSQLException.java
// public class DomSQLException {
// 
// 	public static SQLException create(Throwable t, String message) {
// 		SQLException e = new SQLException(message);
// 		if(t!=null) {
//             e.initCause(t);
// 		}
// 		return e;
// 	}
// 
// 	public static SQLException create(Throwable t, String message, Object... params) {
//         SQLException e = new SQLException(StringUtil.format(message, params));
//         if(t!=null) {
//             e.initCause(t);
//         }
//         return e;
// 	}
// 
// 	public static void setSqliteCode(SQLException exception, int sqliteCode) {
// 		//this.sqliteCode = sqliteCode;
// 	}
// }


import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.util.Date;
import java.util.List;
import com.ibm.commons.util.StringUtil;
import com.ibm.domino.domsql.sqlite.DomSQLException;

    		PrintWriter pw = getPrintWriter();
    		if(pw!=null) {
    			pw.println(format(s));
    			pw.flush();
    			beginLine = true;
    			return;
    		}
    	}
        System.err.println(format(s));
		beginLine = true;
    }

    public static void trace(String s, Object...params) {
        println(format(StringUtil.format(s, params)));
    }
    
    public static void _flush() {
        flush();
    }
    
    public static void _print(String s) {
        print("Native: "+s);
    }

    public static void _println(String s) {
        println("Native: "+s);
    }

    
    public static Object createException(String msg) {

// Path: domsql/eclipse/plugins/com.ibm.domino.domsql.sqlite/src/com/ibm/domino/domsql/sqlite/DomSQLException.java
// public class DomSQLException {
// 
// 	public static SQLException create(Throwable t, String message) {
// 		SQLException e = new SQLException(message);
// 		if(t!=null) {
//             e.initCause(t);
// 		}
// 		return e;
// 	}
// 
// 	public static SQLException create(Throwable t, String message, Object... params) {
//         SQLException e = new SQLException(StringUtil.format(message, params));
//         if(t!=null) {
//             e.initCause(t);
//         }
//         return e;
// 	}
// 
// 	public static void setSqliteCode(SQLException exception, int sqliteCode) {
// 		//this.sqliteCode = sqliteCode;
// 	}
// }


// Path: domsql/eclipse/plugins/com.ibm.domino.domsql.sqlite/src/com/ibm/domino/domsql/sqlite/driver/jni/JNIUtils.java
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.util.Date;
import java.util.List;
import com.ibm.commons.util.StringUtil;
import com.ibm.domino.domsql.sqlite.DomSQLException;

    		PrintWriter pw = getPrintWriter();
    		if(pw!=null) {
    			pw.println(format(s));
    			pw.flush();
    			beginLine = true;
    			return;
    		}
    	}
        System.err.println(format(s));
		beginLine = true;
    }

    public static void trace(String s, Object...params) {
        println(format(StringUtil.format(s, params)));
    }
    
    public static void _flush() {
        flush();
    }
    
    public static void _print(String s) {
        print("Native: "+s);
    }

    public static void _println(String s) {
        println("Native: "+s);
    }

    
    public static Object createException(String msg) {

        return DomSQLException.create(null,msg);
