Android Open Source - BaseAndroid D B Exception






From Project

Back to project page BaseAndroid.

License

The source code is released under:

MIT License

If you think the Android project BaseAndroid 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

/**
 * File: DBException/*from www.j  a va2  s  .  co m*/
 * CreationDate: $(DATE)
 * Author: "M. en C. Javier Silva Perez (JSP)"
 * Description: 
 *
 */
package com.cmovil.baseandroid.dao.db;

import android.database.SQLException;

/**
 * Custom exception for database errors
 *
 * @author "M. en C. Javier Silva Perez (JSP)"
 * @version 1.0
 * @since 28/05/13
 */
public class DBException extends Exception {

  SQLException dbError;

  /**
   * Constructs a new {@code Exception} that includes the current stack trace.
   */
  public DBException() {
  }

  /**
   * Constructs a new {@code Exception} with the current stack trace and the specified detail message.
   *
   * @param detailMessage
   *   the detail message for this exception.
   */
  public DBException(String detailMessage) {
    super(detailMessage);
  }

  /**
   * Constructs a new {@code Exception} with the current stack trace, the specified detail message and the specified
   * cause.
   *
   * @param detailMessage
   *   the detail message for this exception.
   * @param throwable
   *   the cause of this exception.
   */
  public DBException(String detailMessage, Throwable throwable) {
    super(detailMessage, throwable);
  }

  /**
   * Constructs a new {@code Exception} with the current stack trace and the specified cause.
   *
   * @param throwable
   *   the cause of this exception.
   */
  public DBException(Throwable throwable) {
    super(throwable);
  }

  /**
   * Constructs a new {@code Exception} that includes the current stack trace.
   *
   * @param dbError
   *   {@code SQLException} SQL exception
   */
  public DBException(SQLException dbError) {
    this.dbError = dbError;
  }

  /**
   * Constructs a new {@code Exception} with the current stack trace and the specified detail message.
   *
   * @param detailMessage
   *   the detail message for this exception.
   * @param dbError
   *   {@code SQLException} SQL exception
   */
  public DBException(String detailMessage, SQLException dbError) {
    super(detailMessage);
    this.dbError = dbError;
  }
}




Java Source Code List

com.cmovil.baseandroid.controller.BaseDBController.java
com.cmovil.baseandroid.controller.SampleController.java
com.cmovil.baseandroid.dao.db.BaseDBDAO.java
com.cmovil.baseandroid.dao.db.DBException.java
com.cmovil.baseandroid.dao.db.DatabaseDictionary.java
com.cmovil.baseandroid.dao.db.SampleDAO.java
com.cmovil.baseandroid.dao.db.helper.BaseDatabaseOpenHelper.java
com.cmovil.baseandroid.dao.db.helper.SampleOpenHelper.java
com.cmovil.baseandroid.dao.ws.BaseMessageWS.java
com.cmovil.baseandroid.dao.ws.InvalidResponseException.java
com.cmovil.baseandroid.dao.ws.WSClient.java
com.cmovil.baseandroid.model.db.BaseModel.java
com.cmovil.baseandroid.model.db.State.java
com.cmovil.baseandroid.model.ws.MessageErrorCode.java
com.cmovil.baseandroid.model.ws.Parser.java
com.cmovil.baseandroid.util.CMUtils.java
com.cmovil.baseandroid.util.CustomCatalogComparator.java
com.cmovil.baseandroid.util.KeyDictionary.java
com.cmovil.baseandroid.view.BaseActionBarActivity.java
com.cmovil.baseandroid.view.BaseDrawerActivity.java
com.cmovil.baseandroid.view.SplashActivity.java