Android Open Source - SQLDroid S Q L Droid S Q L Exception






From Project

Back to project page SQLDroid.

License

The source code is released under:

MIT License

If you think the Android project SQLDroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.sqldroid;
/*from www.j  a  v a  2 s. co  m*/
import java.io.PrintStream;
import java.io.PrintWriter;

import android.database.SQLException;



public class SQLDroidSQLException extends java.sql.SQLException {
  private static final long serialVersionUID = -7299376329007161001L;

  /** The exception that this exception was created for. */
  SQLException sqlException;
  
  /** Create a hard java.sql.SQLException from the RuntimeException android.database.SQLException. */ 
  public SQLDroidSQLException (SQLException sqlException) {
    this.sqlException = sqlException;
  }

  /**
   * @param o
   * @return
   * @see java.lang.Object#equals(java.lang.Object)
   */
  public boolean equals(Object o) {
    return sqlException.equals(o);
  }

  /**
   * @return
   * @see java.lang.Throwable#fillInStackTrace()
   */
  public Throwable fillInStackTrace() {
    return sqlException.fillInStackTrace();
  }

  /**
   * @return
   * @see java.lang.Throwable#getCause()
   */
  public Throwable getCause() {
    return sqlException.getCause();
  }

  /**
   * @return
   * @see java.lang.Throwable#getLocalizedMessage()
   */
  public String getLocalizedMessage() {
    return sqlException.getLocalizedMessage();
  }

  /**
   * @return
   * @see java.lang.Throwable#getMessage()
   */
  public String getMessage() {
    return sqlException.getMessage();
  }

  /**
   * @return
   * @see java.lang.Throwable#getStackTrace()
   */
  public StackTraceElement[] getStackTrace() {
    return sqlException.getStackTrace();
  }

  /**
   * 
   * @see java.lang.Throwable#printStackTrace()
   */
  public void printStackTrace() {
    sqlException.printStackTrace();
  }

  /**
   * @param err
   * @see java.lang.Throwable#printStackTrace(java.io.PrintStream)
   */
  public void printStackTrace(PrintStream err) {
    sqlException.printStackTrace(err);
  }

  /**
   * @param err
   * @see java.lang.Throwable#printStackTrace(java.io.PrintWriter)
   */
  public void printStackTrace(PrintWriter err) {
    sqlException.printStackTrace(err);
  }

  /**
   * @return
   * @see java.lang.Throwable#toString()
   */
  public String toString() {
    return sqlException.toString();
  }
  
}




Java Source Code List

android.content.ContentValues.java
android.database.AbstractCursor.java
android.database.Cursor.java
android.database.MatrixCursor.java
android.database.MergeCursor.java
android.database.SQLException.java
android.database.SQLite.java
android.database.sqlite.SQLiteDatabaseLockedException.java
android.database.sqlite.SQLiteDatabase.java
android.database.sqlite.SQLiteException.java
android.util.Log.java
org.sqldroid.DebugPrinter.java
org.sqldroid.DroidDataSource.java
org.sqldroid.Log.java
org.sqldroid.SQLDroidBlob.java
org.sqldroid.SQLDroidClob.java
org.sqldroid.SQLDroidConnection.java
org.sqldroid.SQLDroidDatabaseMetaData.java
org.sqldroid.SQLDroidDriver.java
org.sqldroid.SQLDroidPreparedStatement.java
org.sqldroid.SQLDroidResultSetMetaData.java
org.sqldroid.SQLDroidResultSet.java
org.sqldroid.SQLDroidSQLException.java
org.sqldroid.SQLDroidStatement.java
org.sqldroid.SQLiteDatabase.java