PsqlError Object
Show this topic in Library frames
The PsqlError object collects information relevant to errors and warnings generated by the Pervasive.SQL server.
Table 4-12 describes the public properties supported by PsqlError.
Table 4-12 Public Properties of the PsqlError Object
|
Property
|
Description
|
|
ErrorPosition
|
Returns the offset in the SQL statement for which the error applies. If the offset is not applicable to the error, 0 is returned. The initial default value is 0.
|
|
Message
|
Gets the error message text returned from the Pervasive.SQL server.
|
|
Number
|
Gets the error number returned from the Pervasive.SQL server.
|
|
SQLState
|
Gets the string representation of the SQLState when an exception is thrown by the Pervasive.SQL data provider, or 0 if the exception is not applicable to the error. This property is read-only.
|
PsqlErrorCollection Object
The PsqlErrorCollection object is created by a PsqlException to contain all the errors generated by the Pervasive.SQL server.
Table 4-13 provides the public properties supported for the PsqlErrorCollection object.
Table 4-13 Public Properties of the PsqlErrorCollection Object
|
Property
|
Description
|
|
Count
|
Gets the number of PsqlError objects generated by the Pervasive.SQL server.
|
|
Item
|
Gets the PsqlError at the specified position.
|
The PsqlErrorCollection object supports the public methods described in Table 4-14.
Table 4-14 Public Methods of the PsqlErrorCollection Object
|
Property
|
Description
|
|
CopyTo
|
Copies the data provider's Error objects from the ErrorCollection to the specified array.
|
|
GetEnumerator
|
Returns the IEnumerator interface for a given array.
|