Codota Logo
SQLiteMisuseException
Code IndexAdd Codota to your IDE (free)

How to use
SQLiteMisuseException
in
android.database.sqlite

Best Java code snippets using android.database.sqlite.SQLiteMisuseException (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: robolectric/robolectric

 private static RuntimeException getSqliteException(final String message, final int baseErrorCode) {
  // Mapping is from throw_sqlite3_exception in android_database_SQLiteCommon.cpp
  switch (baseErrorCode) {
   case SQLiteConstants.SQLITE_ABORT: return new SQLiteAbortException(message);
   case SQLiteConstants.SQLITE_PERM: return new SQLiteAccessPermException(message);
   case SQLiteConstants.SQLITE_RANGE: return new SQLiteBindOrColumnIndexOutOfRangeException(message);
   case SQLiteConstants.SQLITE_TOOBIG: return new SQLiteBlobTooBigException(message);
   case SQLiteConstants.SQLITE_CANTOPEN: return new SQLiteCantOpenDatabaseException(message);
   case SQLiteConstants.SQLITE_CONSTRAINT: return new SQLiteConstraintException(message);
   case SQLiteConstants.SQLITE_NOTADB: // fall through
   case SQLiteConstants.SQLITE_CORRUPT: return new SQLiteDatabaseCorruptException(message);
   case SQLiteConstants.SQLITE_BUSY: return new SQLiteDatabaseLockedException(message);
   case SQLiteConstants.SQLITE_MISMATCH: return new SQLiteDatatypeMismatchException(message);
   case SQLiteConstants.SQLITE_IOERR: return new SQLiteDiskIOException(message);
   case SQLiteConstants.SQLITE_DONE: return new SQLiteDoneException(message);
   case SQLiteConstants.SQLITE_FULL: return new SQLiteFullException(message);
   case SQLiteConstants.SQLITE_MISUSE: return new SQLiteMisuseException(message);
   case SQLiteConstants.SQLITE_NOMEM: return new SQLiteOutOfMemoryException(message);
   case SQLiteConstants.SQLITE_READONLY: return new SQLiteReadOnlyDatabaseException(message);
   case SQLiteConstants.SQLITE_LOCKED: return new SQLiteTableLockedException(message);
   case SQLiteConstants.SQLITE_INTERRUPT: return new OperationCanceledException(message);
   default: return new android.database.sqlite.SQLiteException(message
     + ", base error code: " + baseErrorCode);
  }
 }
}
origin: org.robolectric/shadows-core-v23

 private RuntimeException getSqliteException(String message, int baseErrorCode) {
  // Mapping is from throw_sqlite3_exception in android_database_SQLiteCommon.cpp
  switch (baseErrorCode) {
   case SQLiteConstants.SQLITE_ABORT: return new SQLiteAbortException(message);
   case SQLiteConstants.SQLITE_PERM: return new SQLiteAccessPermException(message);
   case SQLiteConstants.SQLITE_RANGE: return new SQLiteBindOrColumnIndexOutOfRangeException(message);
   case SQLiteConstants.SQLITE_TOOBIG: return new SQLiteBlobTooBigException(message);
   case SQLiteConstants.SQLITE_CANTOPEN: return new SQLiteCantOpenDatabaseException(message);
   case SQLiteConstants.SQLITE_CONSTRAINT: return new SQLiteConstraintException(message);
   case SQLiteConstants.SQLITE_NOTADB: // fall through
   case SQLiteConstants.SQLITE_CORRUPT: return new SQLiteDatabaseCorruptException(message);
   case SQLiteConstants.SQLITE_BUSY: return new SQLiteDatabaseLockedException(message);
   case SQLiteConstants.SQLITE_MISMATCH: return new SQLiteDatatypeMismatchException(message);
   case SQLiteConstants.SQLITE_IOERR: return new SQLiteDiskIOException(message);
   case SQLiteConstants.SQLITE_DONE: return new SQLiteDoneException(message);
   case SQLiteConstants.SQLITE_FULL: return new SQLiteFullException(message);
   case SQLiteConstants.SQLITE_MISUSE: return new SQLiteMisuseException(message);
   case SQLiteConstants.SQLITE_NOMEM: return new SQLiteOutOfMemoryException(message);
   case SQLiteConstants.SQLITE_READONLY: return new SQLiteReadOnlyDatabaseException(message);
   case SQLiteConstants.SQLITE_LOCKED: return new SQLiteTableLockedException(message);
   case SQLiteConstants.SQLITE_INTERRUPT: return new OperationCanceledException(message);
   default: return new android.database.sqlite.SQLiteException(message
    + ", base error code: " + baseErrorCode);
  }
 }
}
origin: org.robolectric/shadows-core

 private RuntimeException getSqliteException(String message, int baseErrorCode) {
  // Mapping is from throw_sqlite3_exception in android_database_SQLiteCommon.cpp
  switch (baseErrorCode) {
   case SQLiteConstants.SQLITE_ABORT: return new SQLiteAbortException(message);
   case SQLiteConstants.SQLITE_PERM: return new SQLiteAccessPermException(message);
   case SQLiteConstants.SQLITE_RANGE: return new SQLiteBindOrColumnIndexOutOfRangeException(message);
   case SQLiteConstants.SQLITE_TOOBIG: return new SQLiteBlobTooBigException(message);
   case SQLiteConstants.SQLITE_CANTOPEN: return new SQLiteCantOpenDatabaseException(message);
   case SQLiteConstants.SQLITE_CONSTRAINT: return new SQLiteConstraintException(message);
   case SQLiteConstants.SQLITE_NOTADB: // fall through
   case SQLiteConstants.SQLITE_CORRUPT: return new SQLiteDatabaseCorruptException(message);
   case SQLiteConstants.SQLITE_BUSY: return new SQLiteDatabaseLockedException(message);
   case SQLiteConstants.SQLITE_MISMATCH: return new SQLiteDatatypeMismatchException(message);
   case SQLiteConstants.SQLITE_IOERR: return new SQLiteDiskIOException(message);
   case SQLiteConstants.SQLITE_DONE: return new SQLiteDoneException(message);
   case SQLiteConstants.SQLITE_FULL: return new SQLiteFullException(message);
   case SQLiteConstants.SQLITE_MISUSE: return new SQLiteMisuseException(message);
   case SQLiteConstants.SQLITE_NOMEM: return new SQLiteOutOfMemoryException(message);
   case SQLiteConstants.SQLITE_READONLY: return new SQLiteReadOnlyDatabaseException(message);
   case SQLiteConstants.SQLITE_LOCKED: return new SQLiteTableLockedException(message);
   case SQLiteConstants.SQLITE_INTERRUPT: return new OperationCanceledException(message);
   default: return new android.database.sqlite.SQLiteException(message
     + ", base error code: " + baseErrorCode);
  }
 }
}
origin: org.robolectric/framework

 private static RuntimeException getSqliteException(final String message, final int baseErrorCode) {
  // Mapping is from throw_sqlite3_exception in android_database_SQLiteCommon.cpp
  switch (baseErrorCode) {
   case SQLiteConstants.SQLITE_ABORT: return new SQLiteAbortException(message);
   case SQLiteConstants.SQLITE_PERM: return new SQLiteAccessPermException(message);
   case SQLiteConstants.SQLITE_RANGE: return new SQLiteBindOrColumnIndexOutOfRangeException(message);
   case SQLiteConstants.SQLITE_TOOBIG: return new SQLiteBlobTooBigException(message);
   case SQLiteConstants.SQLITE_CANTOPEN: return new SQLiteCantOpenDatabaseException(message);
   case SQLiteConstants.SQLITE_CONSTRAINT: return new SQLiteConstraintException(message);
   case SQLiteConstants.SQLITE_NOTADB: // fall through
   case SQLiteConstants.SQLITE_CORRUPT: return new SQLiteDatabaseCorruptException(message);
   case SQLiteConstants.SQLITE_BUSY: return new SQLiteDatabaseLockedException(message);
   case SQLiteConstants.SQLITE_MISMATCH: return new SQLiteDatatypeMismatchException(message);
   case SQLiteConstants.SQLITE_IOERR: return new SQLiteDiskIOException(message);
   case SQLiteConstants.SQLITE_DONE: return new SQLiteDoneException(message);
   case SQLiteConstants.SQLITE_FULL: return new SQLiteFullException(message);
   case SQLiteConstants.SQLITE_MISUSE: return new SQLiteMisuseException(message);
   case SQLiteConstants.SQLITE_NOMEM: return new SQLiteOutOfMemoryException(message);
   case SQLiteConstants.SQLITE_READONLY: return new SQLiteReadOnlyDatabaseException(message);
   case SQLiteConstants.SQLITE_LOCKED: return new SQLiteTableLockedException(message);
   case SQLiteConstants.SQLITE_INTERRUPT: return new OperationCanceledException(message);
   default: return new android.database.sqlite.SQLiteException(message
     + ", base error code: " + baseErrorCode);
  }
 }
}
origin: org.robolectric/shadows-framework

 private static RuntimeException getSqliteException(final String message, final int baseErrorCode) {
  // Mapping is from throw_sqlite3_exception in android_database_SQLiteCommon.cpp
  switch (baseErrorCode) {
   case SQLiteConstants.SQLITE_ABORT: return new SQLiteAbortException(message);
   case SQLiteConstants.SQLITE_PERM: return new SQLiteAccessPermException(message);
   case SQLiteConstants.SQLITE_RANGE: return new SQLiteBindOrColumnIndexOutOfRangeException(message);
   case SQLiteConstants.SQLITE_TOOBIG: return new SQLiteBlobTooBigException(message);
   case SQLiteConstants.SQLITE_CANTOPEN: return new SQLiteCantOpenDatabaseException(message);
   case SQLiteConstants.SQLITE_CONSTRAINT: return new SQLiteConstraintException(message);
   case SQLiteConstants.SQLITE_NOTADB: // fall through
   case SQLiteConstants.SQLITE_CORRUPT: return new SQLiteDatabaseCorruptException(message);
   case SQLiteConstants.SQLITE_BUSY: return new SQLiteDatabaseLockedException(message);
   case SQLiteConstants.SQLITE_MISMATCH: return new SQLiteDatatypeMismatchException(message);
   case SQLiteConstants.SQLITE_IOERR: return new SQLiteDiskIOException(message);
   case SQLiteConstants.SQLITE_DONE: return new SQLiteDoneException(message);
   case SQLiteConstants.SQLITE_FULL: return new SQLiteFullException(message);
   case SQLiteConstants.SQLITE_MISUSE: return new SQLiteMisuseException(message);
   case SQLiteConstants.SQLITE_NOMEM: return new SQLiteOutOfMemoryException(message);
   case SQLiteConstants.SQLITE_READONLY: return new SQLiteReadOnlyDatabaseException(message);
   case SQLiteConstants.SQLITE_LOCKED: return new SQLiteTableLockedException(message);
   case SQLiteConstants.SQLITE_INTERRUPT: return new OperationCanceledException(message);
   default: return new android.database.sqlite.SQLiteException(message
     + ", base error code: " + baseErrorCode);
  }
 }
}
android.database.sqliteSQLiteMisuseException

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now