Pacoteflash.errors
Classepublic class SQLErrorCode
HerançaSQLErrorCode Inheritance Object

This class defines a set of constants that represent all the valid error code values for the SQLError.code property. A SQLError instance is created when an error occurs with a SQL database operation. The values defined in this class indicate the type error that occurred during the operation.

The SQLError instance's message property contains a more detailed error message for developers.

The SQLError instance's operation property indicates the operation that was attempted, which resulted in the error.

Veja também

flash.errors.SQLError.code


Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Métodos Públicos
 MétodoDefinido por
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constantes públicas
 ConstanteDefinido por
  ABORT : String = "abort"
[static] Indicates that a SQL statement execution failed because execution was aborted.
SQLErrorCode
  BIND_RANGE : String = "bindRange"
[static] Indicates that the operation could not be completed because a parameter index was not valid, such as if a parameter is specified with index 0, or if a parameter is specified with index 7 but the statement text only includes five parameters.
SQLErrorCode
  BUSY : String = "busy"
[static] Indicates that an operation could not be completed because another AIR application was holding a lock on the database.
SQLErrorCode
  CANNOT_OPEN : String = "cannotOpen"
[static] Indicates that the connection could not be completed because the database file could not be opened.
SQLErrorCode
  CONSTRAINT : String = "constraint"
[static] Indicates that the operation could not be completed because the statement caused a violation of one or more data integrity constraints.
SQLErrorCode
  CORRUPT : String = "corrupt"
[static] Indicates that the operation failed because the specified file is a database file whose data has become corrupted.
SQLErrorCode
  FULL : String = "full"
[static] Indicates that the operation could not be completed because the database is full.
SQLErrorCode
  INTERRUPT : String = "interrupt"
[static] Indicates that an operation was not completed because the SQLConnection.cancel() method was called.
SQLErrorCode
  INVALID_DATABASE : String = "invalidDatabase"
[static] Indicates that the operation could not be completed because the file that was specified to open is not a database file (for exemplo, if it is another type of file).
SQLErrorCode
  IO : String = "io"
[static] Indicates that an operation could not be completed because of a disk I/O error.
SQLErrorCode
  LARGE_FILE_SUPPORT : String = "largeFileSupport"
[static] Indicates that the operation failed because the operating system does not support large files.
SQLErrorCode
  LOCKED : String = "locked"
[static] Indicates that an operation could not be completed because another AIR application was holding a lock on a table involved in the operation.
SQLErrorCode
  MISMATCH : String = "mismatch"
[static] Indicates that the operation could not be completed because of a data type mismatch error.
SQLErrorCode
  OPERATION : String = "operation"
[static] Indicates that a general error occurred for the operation that was invoked.
SQLErrorCode
  OUT_OF_MEMORY : String = "outOfMemory"
[static] Indicates that an operation could not be completed because not enough memory was available.
SQLErrorCode
  PERMISSION : String = "permission"
[static] Indicates that the operation failed because a SQL statement attempted to perform an operation that it didn't have permission to perform, such as specifying an INSERT operation to be performed on a view.
SQLErrorCode
  READONLY : String = "readonly"
[static] Indicates that an operation could not be completed because the database is read only.
SQLErrorCode
  SCHEMA : String = "schema"
[static] Indicates that the operation could not be completed because of a schema error.
SQLErrorCode
  TOO_BIG : String = "tooBig"
[static] Indicates that the operation could not be completed because the inserted data is too large.
SQLErrorCode
  UNKNOWN : String
[static] Indicates that the operation could not be completed for a reason that could not be determined by the runtime.
SQLErrorCode
Detalhes da constante
ABORTConstante
public static const ABORT:String = "abort"

Indicates that a SQL statement execution failed because execution was aborted. This error occurs when code in a trigger cancels the operation using the SQL RAISE() function, or if the SQLConnection.cancel() or SQLStatement.cancel() methods are called when a statement is executed with a page size (execute(x) or next(x)) and not all of the results have been returned.

Veja também

BIND_RANGEConstante 
public static const BIND_RANGE:String = "bindRange"

Indicates that the operation could not be completed because a parameter index was not valid, such as if a parameter is specified with index 0, or if a parameter is specified with index 7 but the statement text only includes five parameters.

Veja também

BUSYConstante 
public static const BUSY:String = "busy"

Indicates that an operation could not be completed because another AIR application was holding a lock on the database.

Veja também

CANNOT_OPENConstante 
public static const CANNOT_OPEN:String = "cannotOpen"

Indicates that the connection could not be completed because the database file could not be opened. This can happen if SQLConnection.open() is called with the autoCreate parameter set to false and the database file doesn't exist. It can also happen if the operating system returns an error when the runtime attempts to access the database file.

Veja também

CONSTRAINTConstante 
public static const CONSTRAINT:String = "constraint"

Indicates that the operation could not be completed because the statement caused a violation of one or more data integrity constraints. These are constraints that are defined in the table structure when it is created. For more information, see the CREATE TABLE section in the appendix SQL support in local databases.

Veja também

CORRUPTConstante 
public static const CORRUPT:String = "corrupt"

Indicates that the operation failed because the specified file is a database file whose data has become corrupted.

Veja também

FULLConstante 
public static const FULL:String = "full"

Indicates that the operation could not be completed because the database is full.

Veja também

INTERRUPTConstante 
public static const INTERRUPT:String = "interrupt"

Indicates that an operation was not completed because the SQLConnection.cancel() method was called.

Veja também

INVALID_DATABASEConstante 
public static const INVALID_DATABASE:String = "invalidDatabase"

Indicates that the operation could not be completed because the file that was specified to open is not a database file (for exemplo, if it is another type of file).

Veja também

IOConstante 
public static const IO:String = "io"

Indicates that an operation could not be completed because of a disk I/O error. This can happen if the runtime is attempting to delete a temporary file and another program (such as a virus protection application) is holding a lock on the file. This can also happen if the runtime is attempting to write data to a file and the data can't be written.

Veja também

LARGE_FILE_SUPPORTConstante 
public static const LARGE_FILE_SUPPORT:String = "largeFileSupport"

Indicates that the operation failed because the operating system does not support large files. This can occur if the database size grows larger than the maximum size allowed by the operating system.

Veja também

LOCKEDConstante 
public static const LOCKED:String = "locked"

Indicates that an operation could not be completed because another AIR application was holding a lock on a table involved in the operation. This can occur when an application attempts to write to a table when another application has an open transaction and is writing to the table, or if an application attempts to read from or write to a table while another application has an exclusive-locked transaction.

Veja também

MISMATCHConstante 
public static const MISMATCH:String = "mismatch"

Indicates that the operation could not be completed because of a data type mismatch error. This occurs when the data type of a value doesn't match the expected or required type.

Note that when using a value in conjunction with a column (such as when inserting data into a column or comparing a value to a column's value), the runtime automatically converts data to the appropriate type. This error only occurs when a value is used in a non-column context, such as if a non-integer value is used with a LIMIT clause. For more information, see the Data type support and SELECT sections in the appendix SQL support in local databases.

Veja também

OPERATIONConstante 
public static const OPERATION:String = "operation"

Indicates that a general error occurred for the operation that was invoked. The operation property of the SQLError instance indicates the operation that was executed and caused the error. The SQLError.message property contains a description of the error.

Veja também

OUT_OF_MEMORYConstante 
public static const OUT_OF_MEMORY:String = "outOfMemory"

Indicates that an operation could not be completed because not enough memory was available.

Veja também

PERMISSIONConstante 
public static const PERMISSION:String = "permission"

Indicates that the operation failed because a SQL statement attempted to perform an operation that it didn't have permission to perform, such as specifying an INSERT operation to be performed on a view.

Veja também

READONLYConstante 
public static const READONLY:String = "readonly"

Indicates that an operation could not be completed because the database is read only. This can occur if the database file is designated as read only in the operating system, or if an older version of Adobe AIR accesses a database file created with a newer version of the runtime.

Veja também

SCHEMAConstante 
public static const SCHEMA:String = "schema"

Indicates that the operation could not be completed because of a schema error. This occurs when the schema of the database changes after a statement is prepared but before it finishes executing, such as if two AIR applications are connected to the same database, and one application changes the schema while another one is reading it.

Veja também

TOO_BIGConstante 
public static const TOO_BIG:String = "tooBig"

Indicates that the operation could not be completed because the inserted data is too large.

Veja também

UNKNOWNConstante 
public static const UNKNOWN:String

Indicates that the operation could not be completed for a reason that could not be determined by the runtime.

Veja também