SQLJet Home

org.tmatesoft.sqljet.core
Enum SqlJetErrorCode

java.lang.Object
  extended by java.lang.Enum<SqlJetErrorCode>
      extended by org.tmatesoft.sqljet.core.SqlJetErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SqlJetErrorCode>

public enum SqlJetErrorCode
extends java.lang.Enum<SqlJetErrorCode>

SqlJet error codes.

Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)

Enum Constant Summary
ABORT
          Callback routine requested an abort
AUTH
          Authorization denied
BAD_PARAMETER
          Bad parameter value in function call wich impossible to execute
BUSY
          The database file is locked
CANTOPEN
          Unable to open the database file
CONSTRAINT
          Abort due to constraint violation
CORRUPT
          The database disk image is malformed
DONE
           
EMPTY
          Database is empty
ERROR
          SQL error or missing database
FORMAT
          Auxiliary database format error
FULL
          Insertion failed because database is full
INTERNAL
          Internal logic error in SQLite
INTERRUPT
          Operation terminated by sqlite3_interrupt()
IOERR
          Some kind of disk I/O error occurred
LOCKED
          A table in the database is locked
MISMATCH
          Data type mismatch
MISUSE
          Library used incorrectly
NOLFS
          Uses OS features not supported on host
NOMEM
          A malloc() failed
NOTADB
          File opened that is not a database file
NOTFOUND
          NOT USED.
PERM
          Internal logic error in SQLite
PROTOCOL
          NOT USED.
RANGE
          2nd parameter to sqlite3_bind out of range
READONLY
          Attempt to write a readonly database
SCHEMA
          The database schema changed
TOOBIG
          String or BLOB exceeds size limit
 
Method Summary
static SqlJetErrorCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SqlJetErrorCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ERROR

public static final SqlJetErrorCode ERROR
SQL error or missing database


INTERNAL

public static final SqlJetErrorCode INTERNAL
Internal logic error in SQLite


PERM

public static final SqlJetErrorCode PERM
Internal logic error in SQLite


ABORT

public static final SqlJetErrorCode ABORT
Callback routine requested an abort


BUSY

public static final SqlJetErrorCode BUSY
The database file is locked


LOCKED

public static final SqlJetErrorCode LOCKED
A table in the database is locked


NOMEM

public static final SqlJetErrorCode NOMEM
A malloc() failed


READONLY

public static final SqlJetErrorCode READONLY
Attempt to write a readonly database


INTERRUPT

public static final SqlJetErrorCode INTERRUPT
Operation terminated by sqlite3_interrupt()


IOERR

public static final SqlJetErrorCode IOERR
Some kind of disk I/O error occurred


CORRUPT

public static final SqlJetErrorCode CORRUPT
The database disk image is malformed


NOTFOUND

public static final SqlJetErrorCode NOTFOUND
NOT USED. Table or record not found


FULL

public static final SqlJetErrorCode FULL
Insertion failed because database is full


CANTOPEN

public static final SqlJetErrorCode CANTOPEN
Unable to open the database file


PROTOCOL

public static final SqlJetErrorCode PROTOCOL
NOT USED. Database lock protocol error


EMPTY

public static final SqlJetErrorCode EMPTY
Database is empty


SCHEMA

public static final SqlJetErrorCode SCHEMA
The database schema changed


TOOBIG

public static final SqlJetErrorCode TOOBIG
String or BLOB exceeds size limit


CONSTRAINT

public static final SqlJetErrorCode CONSTRAINT
Abort due to constraint violation


MISMATCH

public static final SqlJetErrorCode MISMATCH
Data type mismatch


MISUSE

public static final SqlJetErrorCode MISUSE
Library used incorrectly


NOLFS

public static final SqlJetErrorCode NOLFS
Uses OS features not supported on host


AUTH

public static final SqlJetErrorCode AUTH
Authorization denied


FORMAT

public static final SqlJetErrorCode FORMAT
Auxiliary database format error


RANGE

public static final SqlJetErrorCode RANGE
2nd parameter to sqlite3_bind out of range


NOTADB

public static final SqlJetErrorCode NOTADB
File opened that is not a database file


DONE

public static final SqlJetErrorCode DONE

BAD_PARAMETER

public static final SqlJetErrorCode BAD_PARAMETER
Bad parameter value in function call wich impossible to execute

Method Detail

values

public static SqlJetErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SqlJetErrorCode c : SqlJetErrorCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SqlJetErrorCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

SQLJet Home

Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.