| Pacote | flash.errors |
| Classe | public class SQLError |
| Herança | SQLError Error Object |
In asynchronous execution mode, when an error occurs
with a SQL database operation the SQLConnection or SQLStatement instance
dispatches a SQLErrorEvent. Information about the error in the form of a
SQLError instance can be accessed from the SQLErrorEvent object's error
property.
In synchronous execution mode, when an error occurs with a SQL
database operation the SQLConnection or SQLStatement instance throws a
SQLError exception, which can be handled by enclosing the error-throwing code in
a try..catch block.
This class provides properties containing the error code, a text message containing the details of the error, and the operation that caused the error to occur.
Veja também
| Propriedade | Definido por | ||
|---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
| details : String
[read-only]
Details of the current error.
| SQLError | ||
![]() | errorID : int
[read-only]
Contains the reference number associated with the specific error message.
| Error | |
![]() | message : String
Contains the message associated with the Error object.
| Error | |
![]() | name : String
Contains the name of the Error object.
| Error | |
| operation : String
[read-only]
A value indicating the operation that was being attempted when the error occurred.
| SQLError | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
| Método | Definido por | ||
|---|---|---|---|
|
Creates a SQLError instance that can be thrown or used with a
SQLErrorEvent instance's error property.
| SQLError | ||
![]() |
Returns the call stack for an error as a string at the time of the error's construction (for the debugger version
of Flash Player only).
| Error | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
|
Returns the string "Error" by default or the value contained in Error.message property,
if defined.
Returns the string representation of the specified object.
| SQLError | ||
![]() |
Returns the primitive value of the specified object.
| Object | |
| details | propriedade |
details:String [read-only] Details of the current error. This provides additional specific information about the error that occurred.
public function get details():String
Veja também
| operation | propriedade |
operation:String [read-only] A value indicating the operation that was being attempted when the error occurred. This value is one of the constants defined in the SQLOperation class.
public function get operation():String
Veja também
| SQLError | () | Construtor |
public function SQLError(operation:String, details:String = "", message:String = "", id:int = 0)
Creates a SQLError instance that can be thrown or used with a
SQLErrorEvent instance's error property.
operation:String — Indicates the specific operation that caused
the failure. The value is one of the constants defined in the
SQLErrorOperation class.
|
|
details:String (default = "") — The details for the current error.
|
|
message:String (default = "") — The description of the error that
occurred.
|
|
id:int (default = 0) — A reference number associated with the specific error message.
|
Veja também
| toString | () | método |
public function toString():String
Returns the string
"Error" by default or the value contained in Error.message property,
if defined.
Returns the string representation of the specified object.
Note: Methods of the Object class are dynamically created on Object's prototype. To redefine this method in a subclass of Object, do not use the override keyword. For exemplo, A subclass of Object implements function toString():String instead of using an override of the base class.
String — The error message.
|