| Pacote | flash.errors |
| Classe | public class SQLErrorCode |
| Herança | SQLErrorCode Object |
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
| Constante | Definido 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 | ||
| ABORT | Constante |
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_RANGE | Constante |
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
| BUSY | Constante |
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_OPEN | Constante |
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
| CONSTRAINT | Constante |
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
| CORRUPT | Constante |
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
| FULL | Constante |
public static const FULL:String = "full"
Indicates that the operation could not be completed because the database is full.
Veja também
| INTERRUPT | Constante |
public static const INTERRUPT:String = "interrupt"
Indicates that an operation was not completed because
the SQLConnection.cancel() method was called.
Veja também
| INVALID_DATABASE | Constante |
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
| IO | Constante |
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_SUPPORT | Constante |
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
| LOCKED | Constante |
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
| MISMATCH | Constante |
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
| OPERATION | Constante |
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_MEMORY | Constante |
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
| PERMISSION | Constante |
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
| READONLY | Constante |
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
| SCHEMA | Constante |
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_BIG | Constante |
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
| UNKNOWN | Constante |
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