All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sqldroid.SQLDroidSQLException Maven / Gradle / Ivy

The newest version!
package org.sqldroid;

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();
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy